Reporting on inactive & deleted users

Is there any documentation on how the process of making users inactive or deleting them affect the results from the user_api.get_users() method? The docs state this endpoint returns 'available' users, but it's not clear to me how that overlaps with user state.

  • Does it only report on users where the state is active?
  • Does any sanitising of agent_name, email etc occur when an account is set to inactive or deleted?
  • Can I still list all agent IDs (active or deleted) through an endpoint, even if corresponding agent data like name has been deleted?

Our team will be undertaking some cleanup of agent accounts, so it would be good to understand any impact before work begins.

Thanks

Specifying state=any in the get_users() call should get you all users (active, deleted, inactive). It looks like the docs for that method omit that but you can refer to the state options here: https://developer.mypurecloud.com/api/rest/v2/users/#get-api-v2-users

I hope that works for you
Walter

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