cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
141
Views
0
Helpful
5
Replies

Is there an API for WEBEX to change active or deactivate user?

rachelro
Level 1
Level 1

Hi,
Is there an API for WEBEX that can update a user's status from Active to Inactivate ?
as can be changed manually in the following link https://help.webex.com/en-us/article/v5wksr/Deactivate-a-user-from-your-organization 
Thanks

2 Accepted Solutions

Vaijanath Sonvane
VIP Alumni
VIP Alumni

There is no Webex API specifically for deactivating a user.

Webex offers APIs for managing users, such as adding, updating, and deleting users, but deactivation is not available as a distinct API action at this time.

 

Please rate helpful posts and if applicable mark "Accept as a Solution".
Thanks, Vaijanath S.

View solution in original post

Hi @rachelro,

You will find the organization ID in your Webex Control Hub under Management >> Account. You can then use this Org ID in SCIM 2 GET Search Users request to get correct User ID for filtered user. For example:

VaijanathSonvane_1-1738682048334.png

Make sure to use the correct filter depending on your requirement. It is mentioned here:

https://developer.webex.com/docs/api/v1/scim2-user/search-users

 

 

 

 

Please rate helpful posts and if applicable mark "Accept as a Solution".
Thanks, Vaijanath S.

View solution in original post

5 Replies 5

Vaijanath Sonvane
VIP Alumni
VIP Alumni

There is no Webex API specifically for deactivating a user.

Webex offers APIs for managing users, such as adding, updating, and deleting users, but deactivation is not available as a distinct API action at this time.

 

Please rate helpful posts and if applicable mark "Accept as a Solution".
Thanks, Vaijanath S.

I believe the SCIM 2 Put and Patch methods allow you to change an account state to inactive. Be aware that inactive accounts are deleted after 30 days by default, although you can change the retention period.

If you’re simply trying to suspend access instead of deleting the user, you can reset their OAuth tokens (GUI and API options exist) to kick them out of all logged in sessions and then disable their account on the SSO IdP so they can’t login again.

Thank you very much for the answer!
I'm trying to test the SCIM 2 PUT method and it's not working well.
Can you tell me where to get the correct user ID and the appropriate org ID?
Because what I used I got a 403 error and I checked that I do have the appropriate permissions: id_full_admin and the correct scope: identity:people_rw
and I understood from reading the correspondence in this link: https://community.cisco.com/t5/webex-for-developers/cannot-unassign-primary-phone-number-with-webex-api-people/m-p/5196925/highlight/true
that I need to get the user ID from the SCIM 2 API and I tried with the user ID and org ID that was received and then I got a 404 error that the user ID cannot be found.
Thank you very much for your help

Hi @rachelro,

You will find the organization ID in your Webex Control Hub under Management >> Account. You can then use this Org ID in SCIM 2 GET Search Users request to get correct User ID for filtered user. For example:

VaijanathSonvane_1-1738682048334.png

Make sure to use the correct filter depending on your requirement. It is mentioned here:

https://developer.webex.com/docs/api/v1/scim2-user/search-users

 

 

 

 

Please rate helpful posts and if applicable mark "Accept as a Solution".
Thanks, Vaijanath S.

Thank you very much!
It helped me and I was able to get the required information