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

[Feature Request] Include Security Role Assignment #148

Open
xuzhang3 opened this issue Jan 26, 2024 · 3 comments
Open

[Feature Request] Include Security Role Assignment #148

xuzhang3 opened this issue Jan 26, 2024 · 3 comments

Comments

@xuzhang3
Copy link
Contributor

Support mange Security Role Assignment
API: https://learn.microsoft.com/en-us/rest/api/azure/devops/securityroles/roleassignments/set-role-assignment?view=azure-devops-rest-7.0

@favoretti
Copy link

@xuzhang3 is there any idea when this can be generated in the SDK? I could use some resources in azuredevops as well, but can't make those until this is generated. Thank you!

@favoretti
Copy link

Or well, I assume I could potentially inline a client into the provider, but that's dirty :)

@favoretti
Copy link

Here's a working stub of both client and a couple of resources implementation. https://github.com/microsoft/terraform-provider-azuredevops/pull/982/files

Example usage is:

data "azuredevops_securityrole_definitions" "test" {
  scope = "distributedtask.environmentreferencerole"
}

resource "azuredevops_securityrole_assignment" "test" {
  scope       = "distributedtask.environmentreferencerole"
  resource_id = "xxxx-xxxx-4b83-8b07-2f80221212f1_1624"
  identity_id = "8f436a3e-xxxx-4ae8-xxxx-f1383f8848ca"
  role_name   = "Administrator"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants