Issue with Get Users management API -- /v1/users

Prashant819
Participant II

Hello,

I am unable to list down all users available in the organization. I am getting 403 Forbidden always.

I am trying to use the management API given on this documentation page - https://apidocs.apigee.com/management/apis/get/users

Please note that I have Org Admin rights and using on-prem installation only.

I know that users can be listed per role with other management APIs, but I am here specifically looking to get the list of distinct users irrespective of their roles.

Is anyone getting the same 403 response? or is this management API deprecated ?

Thanks.

0 1 120
1 REPLY 1

I think you may need to be sysadmin, not orgadmin.

If the resource is /v1/o/ORGNAME/resource , then ... you need orgadmin rights in the org ORGNAME.

If the resource is /v1/users then there is no single org that owns the resource, therefore orgadmin rights in any particular org are not sufficient. You need sysadmin credentials.

Can you try that?