Reputation: 23
I have cloud foundry organizations and spaces in these organizations. To check which Users is in which space I wanted to access the API via the cloud controller v3: https://v3-apidocs.cloudfoundry.org/version/3.91.0/
With the Api I can for example read out all organizations or all spaces but I think the API does not provide information about which user is in which organization, space or role collection.
Therefore my question is, if there is a way to see which person is in which organization, space or role collection or if I have to use something else.
If I have to use something else, could you provide some information about that (i.e. a link).
Upvotes: 0
Views: 578
Reputation: 11
You will need to call "/v3/roles" endpoint and filter based on userid To get the userid you can call the "/v3/users" and filter based on username. Than You will need to iterate over all the roles, and extract org, space etc. I found this post https://guyfromit.com/post/cf-userroles/
Upvotes: 0
Reputation: 15006
You want Roles.
Roles control access to resources in organizations and spaces. Roles are assigned to users.
This is what you set with cf set-org-role
or cf set-space-role
.
You have the following valid roles:
Upvotes: 0