galaxy_ng icon indicating copy to clipboard operation
galaxy_ng copied to clipboard

Add django script to manage users in group

Open Tompage1994 opened this issue 3 years ago • 3 comments

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

Tompage1994 avatar Jun 24 '22 14:06 Tompage1994

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...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

netlify[bot] avatar Jun 24 '22 14:06 netlify[bot]

Can one of the admins verify this patch?

app-sre-bot avatar Jun 24 '22 14:06 app-sre-bot

@awcrosby Would this be useful for https://issues.redhat.com/browse/AAH-1955 ?

alikins avatar Oct 14 '22 17:10 alikins

@Tompage1994 overall this looks good, are you able to GPG sign your commit?

awcrosby avatar Nov 15 '22 20:11 awcrosby

@Tompage1994 overall this looks good, are you able to GPG sign your commit?

Done

Tompage1994 avatar Nov 16 '22 09:11 Tompage1994