SAP / terraform-provider-btp

Terraform provider for SAP BTP
https://registry.terraform.io/providers/SAP/btp/latest
Apache License 2.0
87 stars 18 forks source link

[FEATURE] Enable display of assigned role collections with group filter #748

Open lechnerc77 opened 7 months ago

lechnerc77 commented 7 months ago

What area do you want to see improved?

terraform provider

Is your feature request related to a problem? Please describe.

As of today you can evaluate which role collection are assigned to a user via the data source btp_subaccount_user. This works if the role collections are directly assigned to a user.

Another usual way is to assign role collections via groups which is supported by the corresponding resource https://registry.terraform.io/providers/SAP/btp/latest/docs/resources/subaccount_role_collection_assignment. However in this case there is no way to find out the connection between role collections and groups neither via CLI nor via Terraform.

Describe the solution you would like

The Terraform provider should support the functionality to retrieve the information which role collection is assigned to which group.

Describe alternatives you have considered

One possible way might be accessing the information via APIs, but this jeopardizes a consistent Terraform setup.

Additional context

This is certainly a cross-topic spanning from the security/XSUAA team to the BTP CLI and to the Terraform provider that needs to be aligned

github-actions[bot] commented 7 months ago

Thanks for the feature request. We evaluate it and update the issue accordingly.

Community Note

Voting for Prioritization

Volunteering to Work on This Issue

lechnerc77 commented 7 months ago

This issue must be analyzed also under the aspect of import of role collection assignments which is currently not possible. This is a gap that at least should be also discussed in the context of this request

lechnerc77 commented 7 months ago

[SAP Internal Reference] https://jira.tools.sap/browse/XSUAA-3475 - follow-up in Q3/2024

lechnerc77 commented 2 weeks ago

Update: NO ETA available until now.