Difference in api users get api

Hi,

Could you please tell me the difference in both these apis for users
GET /workspaces/xxxxxxxxxxxx/users
GET /users?limit=10&workspace=xxxxxxxxxxxx

Both gives me same result.
Only difference I found is one support pagination and other not.
Please confirm.

@parikshit_sardessai,

They are almost identical, yes. I would recommend using GET /users?workspace=xxxxxxxxxxxx . Due to a particular way the API is implemented internally, the other call will sometimes return a NULL for a user’s email address when it actually exists, whereas the call I recommend will return the email address.

1 Like