Legacy Dev Forum Posts

 View Only

Sign Up

How to get Inactive/delete state user info?

  • 1.  How to get Inactive/delete state user info?

    Posted 06-05-2025 18:22

    mkoya | 2022-04-26 09:38:44 UTC | #1

    Hi, I tried get user status via a GET /api/v2/users with "expand" query parameter containing "state=any", however responce contains only active user. How to get other state(Inactive, delete)?

    SDK Log is bellow.

    GET /api/v2/users?pageNumber=1&expand=authorization&expand=groups&expand=status%3Dany >>>>


    Jerome.Saint-Marc | 2022-04-26 12:03:39 UTC | #2

    Hello,

    Your url is incorrect (expand is a comma separated list, status is a distinct parameter - not part of expand). It should be: GET/api/v2/users?pageNumber=1&expand=authorization%2Cgroups&state=any

    If you are using the Platform API Java SDK, you can check the Java SDK Invocation example for the GET /api/v2/users.

    Regards,


    mkoya | 2022-04-27 01:34:19 UTC | #3

    Thanks for the reply. I found out that when using JavaSDK, the state(any) should be set to "state", not the method argument "expand". And I was able to request with the correct URL.

    GET /api/v2/users?pageNumber=1&expand=authorization&expand=groups&state=any >>>>


    system | 2022-05-28 01:34:38 UTC | #4

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


    This post was migrated from the old Developer Forum.

    ref: 14456