Hi,
Is there any API for granting permission to custom role so that users with this role can view the list of users in the Organisation.
We have assigned below permissions but still not able to see the users.
Users | /users | GET, PUT | List/add users |
/users/* | GET, PUT, DELETE | Get/update/delete user |
Reference - Add permissions to custom role
Thanks,
Anup Rai
GET on /users will give you a list of users, but they'll be in all organizations (assuming you're on private cloud).
There's no concept of a user in an organization without some kind of role associated to it. To get all users in an organization regardless of role, you'll need to get a list of roles (see https://apidocs.apigee.com/management/apis/get/organizations/%7Borg_name%7D/userroles ) then get users for that role (see https://apidocs.apigee.com/management/apis/get/organizations/%7Borg_name%7D/userroles/%7Brole_name%7... ), so your custom role would need those permissions to do that.