galaxy_ng
galaxy_ng copied to clipboard
Add django script to manage users in group
What is this PR doing:
Allows you to add or remove users from groups for local users. This is needed when Keycloak auth is enabled as there is no way to manage local users otherwise and local users are required to be able to do CI type jobs. This script allows a workaround to be put in place and can be used in conjunction with the other Django scripts in this directory.
Reviewers must know:
No issue exists for this PR.
$ django-admin manage-user-groups ansible automation newgroup
Assigned group 'newgroup' to user 'ansible'
Assigned group 'newgroup' to user 'automation'
$ django-admin manage-user-groups --remove ansible automation newgroup
Removed group 'newgroup' from user 'ansible'
Removed group 'newgroup' from user 'automation'
Notes:
PR Author: Add a QE reviewer (exceptions); Reviewers: look for sound code, no code smells, docs & test coverage Merger: When merging, include the Jira issue link in the squashed commit
Deploy Preview for galaxyng ready!
| Name | Link |
|---|---|
| Latest commit | 8c2946b7abe687ccb54f0012d581dbb2dbac4b99 |
| Latest deploy log | https://app.netlify.com/sites/galaxyng/deploys/6374ad0f1ced30000955fcc8 |
| Deploy Preview | https://deploy-preview-1331--galaxyng.netlify.app |
| Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site settings.
Can one of the admins verify this patch?
@awcrosby Would this be useful for https://issues.redhat.com/browse/AAH-1955 ?
@Tompage1994 overall this looks good, are you able to GPG sign your commit?
@Tompage1994 overall this looks good, are you able to GPG sign your commit?
Done