How to get all org/space roles and their assigned users? #180
Unanswered
markusbalsam
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hi @markusbalsam, There is a cloudfoundry_users data source that fetches all the users who have a valid role for that org or space. Kindly check if this can achieve the desired use case. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Since the cloudfoundry_org_role and cloudfoundry_space_role resources aren't idempotent (i.e., assigning a role to a user that already has this role results in an error) I'd like to find out which users are already assigned to certain org or space roles.
While the provider has a cloudfoundry_role data source, it's not very useful since it requires to know the
guid
of a role, and as far as I can see there's no data source (yet) that provides a list of all roles for an org or space with their guids.Is there any other way to achieve this using the current version (1.0.0-rc1)?
If not, are there any plans to add
cloudfoundry_[org|space]_roles
data sources to retrieve all roles for a given org or space? The V3 API has an endpoint that provides exactly this information: https://v3-apidocs.cloudfoundry.org/version/3.174.0/index.html#list-rolesBeta Was this translation helpful? Give feedback.
All reactions