Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for organization roles and service roles #314

Open
VickyWinner opened this issue Mar 15, 2021 · 17 comments
Open

Add support for organization roles and service roles #314

VickyWinner opened this issue Mar 15, 2021 · 17 comments
Labels
enhancement New feature or request

Comments

@VickyWinner
Copy link

vRA version
vRealize Automation 8.3.0.15014 (17551690)

Terraform version
Terraform v0.13.3

terraform-provider-vra plugin version
v0.3.4

Is your feature request related to a problem? Please describe.
Before I create a new project using terraform, I need to grant the access using Identity & Access Management at Organization Roles and Service Roles. I am not finding an example for that. if this feature isn't available, then I will have to do it manually.

Describe the solution you'd like
set of data sources and resources to retrieve data and create resources for managing Organization Roles and Service Roles.

Describe alternatives you've considered
I see there are API's available. However, it will make my terraform code more complex and can't accomplish as IaC.

Additional context
Add any other context or screenshots about the feature request here.

@VickyWinner VickyWinner added the enhancement New feature or request label Mar 15, 2021
@VickyWinner VickyWinner changed the title Assign Cloud Assembly and Service Broker User Roles Assign Organization Roles and Service Roles Mar 15, 2021
@VickyWinner
Copy link
Author

appreciate if someone could respond. Its been a while I opened this.

@wilsonandvmware
Copy link
Contributor

Hey @VickyWinner Could you elaborate how to grant the access manually using Identity & Access Management at Organization Roles and Service Roles ? I see you mentioned there are available APIs, could you post the API please ?

Thank you

@tenthirtyam
Copy link
Contributor

Hi, @wilsonandvmware.

vRealize Automation APIs for Identity and Access Management are at {vrahost}/identity/doc/webjars/swagger-ui/index.html?configUrl=/identity/doc/v3/api-docs/swagger-config under UserController or UserV3Controller.

For UI-based example, see the VMware Validated Design example for Assign Organization and Service Roles to User Groups for vRealize Automation.

Ryan Johnson
Staff Architect, VMware

@VickyWinner
Copy link
Author

@tenthirtyam
Copy link
Contributor

Your link above would be only applicable, to VMware Cloud Service Portal (CSP), and thus vRealize Automation Cloud.

@VickyWinner
Copy link
Author

@tenthirtyam so you mean there is no API available for assigning org roles and service roles?
image

@tenthirtyam
Copy link
Contributor

For vRA8 on-premises the APIs for Identity and Access Management are at {vrahost}/identity/doc/webjars/swagger-ui/index.html?configUrl=/identity/doc/v3/api-docs/swagger-config under UserController or UserV3Controller. I confirmed this with the engineering team yesterday.

Ryan

@VickyWinner
Copy link
Author

@tenthirtyam Thank you for the link. So, are you considering for this enhancement in the provider?

@tenthirtyam
Copy link
Contributor

I would need to defer to the PMs and engineers for the Terraform Provider for vRealize Automation and suggest labels for under-review, planned, deferred, rejected be applied to enhancement issues. I just happen to use our providers quite a bit. cc @Prativa20

Ryan Johnson
Staff Architect, VMware

@rnelson0
Copy link
Contributor

We are coming up on a year since this was submitted and I don't see any provider resources for this yet, but please correct me if I missed something. If it is not present, are there any plans for this? I just had to add 24 groups 3 vRA instances and can say I'm extremely interested in such a feature, but unfortunately I don't know enough go or terraform code at this point to submit any PRs myself. It's going on the list of things to learn. In the meantime, if I can help in any way, please let me know.

@frodenas
Copy link
Member

@rnelson0 this feature is under consideration, and we'd like to address it as soon as possible. The complexity here is that the identity service is exposing their API in OpenApi Specification v3 (unlike other services which are using v2), and the way we generate the API SDK client does not support yet this format. We are currently evaluating how to address this constraint, so we can implement the feature requested in this issue. Unfortunately, I cannot provide yet estimation of when we will be able to deliver this.

@VickyWinner
Copy link
Author

Thanks @rnelson0 for the update. My request is to keep this enhancement open so I can check back when there is an update.

@VickyWinner
Copy link
Author

@frodenas Any new update on this issue?

@Arderos
Copy link

Arderos commented Jul 19, 2023

Any updates?

@rnelson0
Copy link
Contributor

AFAIK there's still no solution in this provider. In the meantime I've used PowerValidatedSolutions, specifically New-VraGroup and New-VraUser, to automate the creation of IAM entries. I'd still love to see it in terraform because changes and deletions remain a problem!

@cathode911
Copy link

@frodenas Did you have a chance to address this issue? It's been over 20 months since your last comment

@ykezlya
Copy link

ykezlya commented Nov 30, 2023

Very useful thing, look forward to the implementation!

@tenthirtyam tenthirtyam changed the title Assign Organization Roles and Service Roles Add support for organization roles and service roles Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

8 participants