Access API Documentation | Access Technical Support Portal | Email: support@validic.com
Validic Support Center
Click Here for Latest System Status

Deleting All Users from Sandbox Organization

Last Updated: Aug 29, 2017 09:26AM EDT
Q: Is there a single API call that will remove all users from my sandbox organization?

Validic does not offer a single API call to delete all users from an organization. However, Validic can provide this service at special request or you may accomplish this by removing the users individually. To do so, you may first access the list of users under your organization by making the API call:
GET https://api.validic.com/v1/organizations/{ORGANIZATION_ID}/users.json?access_token={ORGANIZATION_ACCESS_TOKEN}
The response will include all users under your organization. You may then loop through each user and remove them from your organization by making this API call:
DELETE https://api.validic.com/v1/organizations/{ORGANIZATION_ID}/users/{USER_ID}.json
-H 'Content-Type: application/json'
{
    "access_token": "{ORGANIZATION_ACCESS_TOKEN}"
}
 
vlogo
bc869bd0260c3360eac041337ba489f0@validic.desk-mail.com
https://cdn.desk.com/
false
desk
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete