cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
538
Views
1
Helpful
8
Replies

How to assign, list roles of users using Webex Rest API?

Hi Team,

Is there any API which list down assigned roles to all Users?
Also can we assign roles to user? Any REST API?

Thanks,
Prashant

1 Accepted Solution

Hi @prashant-chinchkar Earlier the API documentation had conflicting details, however, now that has been corrected, please check: https://developer.webex.com/docs/api/v1/roles. I've also confirmed with the PM and as I mentioned before, the List Roles API will list all the roles in an org. 

However, if you're not seeing the same behavior, you can raise a support request by sending an email to devsupport@webex.com with the API request that you're making along with API response and the roles that you found missing.



Best regards,
Rudrakshi Srivastava

View solution in original post

8 Replies 8

Rudrakshi
Cisco Employee
Cisco Employee

@prashant-chinchkar As per the https://developer.webex.com/docs/api/v1/roles/list-roles API documentation, it will list all the roles. Is there any specific role that you found missing in the API response? I just tested the API for a non-admin user and I could see all the roles listed.



Best regards,
Rudrakshi Srivastava

Hi @Rudrakshi ,
This https://developer.webex.com/docs/api/v1/roles/list-roles API list roles assigned to to particular user.
I want a API which will list all roles of site/orgs.
Thanks,
Prashant


Hi @Rudrakshi ,

Any update on this?

Thanks,
Prashant

Hi @prashant-chinchkar Earlier the API documentation had conflicting details, however, now that has been corrected, please check: https://developer.webex.com/docs/api/v1/roles. I've also confirmed with the PM and as I mentioned before, the List Roles API will list all the roles in an org. 

However, if you're not seeing the same behavior, you can raise a support request by sending an email to devsupport@webex.com with the API request that you're making along with API response and the roles that you found missing.



Best regards,
Rudrakshi Srivastava

Wayne DeNardi
VIP Alumni
VIP Alumni

There is plenty of documentation on the APIs that are available on-line - see APIs - Access the API | Webex for Developers

Wayne

Please remember to mark helpful responses and to set your question as answered if appropriate.

Hi @Wayne DeNardi ,
I am looking for API which will list all roles of ORG.
This role API only list down Roles assigned to admin/user.
Lets take an example.
I want to manage the role then I need all information of roles which ORG supports.
If I have 100 users then using this  Roles API, which only list down roles assigned to 100 users (that to I need to call Roles api 100 times.)
I need API to list all roles of ORG in single call.

Thanks,
Prashant



Janos Benyovszki
Cisco Employee
Cisco Employee

@prashant-chinchkar we have a Roles API that lists all the available roles in the org https://developer.webex.com/docs/api/v1/roles , Roles can be managed using the People API https://developer.webex.com/docs/api/v1/people/update-a-person . 

@Janos Benyovszki 
https://developer.webex.com/docs/api/v1/roles this API doesn't list down all roles, this only Roles assigned to admin/user