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