06-03-2021 03:01 AM
Hi everyone ,
I want to create user group through python scripts to Duo . can any anyone help me out on how to add user group to duo by python script ?
Thank you
06-03-2021 12:16 PM
Hey @r_acolatse!
I’d recommend taking a look at our Python client library. This will make it much easier to get started with our Admin API. We have a script in the examples folder for creating a user and phone in Duo. This can be tweaked to add a group as well!
You’ll want to take a look at our Groups endpoint and also our Users endpoint to create a group and add users.
Hope this helps!
06-07-2021 09:35 AM
Thank you for help . I have already able to create user and phone in duo How do I get the group id for groups to be able to create user with group on python.
06-07-2021 12:22 PM
Hey @r_acolatse, you can Retrieve Group IDs via https://duo.com/docs/adminapi#retrieve-groups
07-24-2022 10:38 PM
hello ,
problem-scenario -: I have created some user in DUO and assign some categories/group to them and added ,now on client-side(my application) where the created user login using DUO-2FA ,i want the group information of user so that i can provide them permission/access/privileges according to the user group.
can anyone tell how can i get user-group info if not then any alternate way to solve my problem i just want to categorise users and provide the different permission/access/privileges ,Like in my application partymgr → one has permission to see all party info and related access to handle them
06-08-2021 01:03 PM
Hi @cmedfischduo thank you for help . do you have video examples or python script examples of how to create the group on duo
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