
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2019 01:12 AM
Hi All,
I am trying to create Administrator User using admin API with status as Disabled.
Request - POST /admin/v1/admins
Body - {“status”:"Disabled’, etc…}
With this request Admin user gets created on Duo but its status remain as Active.
Does any one have face this issue or their is defect in Duo API?
References - Duo Admin API | Duo Security
Solved! Go to Solution.
- Labels:
-
API - General
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2020 01:10 PM
Follow-up to this question - the Admin API doesn’t respect setting admin status on create. We have added this to our enhancement backlog. Create the admin, and then issue a second POST to /admin/v1/admins/[administrator_id]
with the desired status.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2019 08:56 AM
Are you trying to disable an admin with the Owner role? You can’t disable owners via the API.
{
"code": 40002,
"message": "Cannot disable administrators with Owner role",
"message_detail": "status",
"stat": "FAIL"
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2019 03:49 AM
Hi @DuoKristina,
I am not trying to disable an admin with Owner role, i am trying to create an Administrator with Disable state.
But some how Administrator accounts gets created in Active mode only.
Duo is not respecting status “Disable” which is give in request body.
Is this a correct behavior?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2019 07:20 AM
What role are you specifying when you create the administrator? If you specify no role, the default is Owner
. If you are specifying a role other than Owner
and the administrator account isn’t created as Disabled
, please contact Duo Support.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2020 01:10 PM
Follow-up to this question - the Admin API doesn’t respect setting admin status on create. We have added this to our enhancement backlog. Create the admin, and then issue a second POST to /admin/v1/admins/[administrator_id]
with the desired status.
