Legacy Dev Forum Posts

 View Only

Sign Up

Unable to Create Deleted or Inactive Users through API

  • 1.  Unable to Create Deleted or Inactive Users through API

    Posted 06-05-2025 18:30

    Avinash_CV | 2024-04-02 07:23:07 UTC | #1

    We are using APIs to create a user from Power Apps dashboard or directly through an API. But when we tried to create a user who is either deleted or the status is inactive, we are getting 400 bad request error and the same is with power apps. Could you please help if there is any way to create/restore a user even though they are deleted earlier or inactive using an API.


    Ebenezer_Osei | 2024-04-02 17:59:08 UTC | #2

    Hi,

    Here is an endpoint for modifying user's state: https://developer.genesys.cloud/devapps/api-explorer#put-api-v2-users--userId--state

    Best


    Avinash_CV | 2024-04-09 15:05:54 UTC | #3

    Hi @Ebenezer_Osei Thanks for the update.

    We are using

    POST [api/v2/users/search] (https://api.mypurecloud.de/api/v2/users/search) to look for all users, but its not giving the inactive/deleted users details.

    Hence we were asked to use the GET - /api/v2/users API which will return users of all state but its taking so much time to load and to iterate through the pages as we have almost 1300 pages of 100 users in each page and its taking hours to load the data.

    Could you please help for any API which loads data at faster rate and which can give the user details of all the active , inactive and deleted state.

    Thanks Avinash


    system | 2024-05-09 15:06:36 UTC | #4

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


    This post was migrated from the old Developer Forum.

    ref: 25515