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.
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.
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"
}
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?
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.
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.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide