02-03-2025 05:18 AM
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
Solved! Go to Solution.
02-03-2025 06:24 AM
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.
02-04-2025 07:15 AM
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:
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
02-03-2025 06:24 AM
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.
02-04-2025 03:15 AM
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.
02-04-2025 06:03 AM
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
02-04-2025 07:15 AM
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:
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
02-05-2025 05:32 AM
Thank you very much!
It helped me and I was able to get the required information
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