Manage users with API #4806
Unanswered
max-allan-surevine
asked this question in
Q&A
Replies: 2 comments
-
I think by default there is no API for the Django admin part. It would need something like this https://github.com/amirasaran/django-restful-admin. Had no updates for over a year, so not sure if it is working/maintained. |
Beta Was this translation helpful? Give feedback.
0 replies
-
The django groups have no effect for the user interface and only limited effect for the API. You should use the DefectDojo groups instead, see https://defectdojo.github.io/django-DefectDojo/usage/permissions/ |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I can add users with the v2 API but I can't change their groups or reset passwords, etc. That is managed by Django (I think!).
Are there any docs/guidelines on how to auth to django with my API token and what endpoints are available etc.??
(I'd like to set a user password and add to a group, with a curl command from the CLI.)
I can see the request to "/admin/auth/user/abc/change/" with "groups: xyz" as form data (where xyz and abc are group/user IDs) Do I need to specify all the other fields I'm not changing? Can I use JSON? etc. )
Beta Was this translation helpful? Give feedback.
All reactions