How to get Inactive/delete state user info?

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 >>>>

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,

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 >>>>

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