Removal of Agent through APIs

I am trying to automate the lifecycle of user accounts in PureCloud and am focusing on the termination portion right now. I have looked at some of the API calls and have found the remove roles and delete user based on the UserID found in PureCloud but I was wondering the following;

•Is there a way to find the UserID based on a user email? Or can you delete based on the email?
•Is there a way to remove all information from the "Person Details" page of a user account such as relationships and Contact Information?

Any help is appreciated.

This resource can search users by email address:

POST /api/v2/users/search

// sample request
{
   "sortOrder": "ASC",
   "query": [
      {
         "fields": ["email"],
         "value": "email@domain.com",
         "type": "EXACT"
      }
   ]
}

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.