layout | page_title | description |
---|---|---|
azuredevops |
AzureDevops: azuredevops_project_permissions |
Manages permissions for a AzureDevOps project |
Manages permissions for a AzureDevOps project
~> Note Permissions can be assigned to group principals and not to single user principals.
resource "azuredevops_project" "example" {
name = "Example Project"
visibility = "private"
version_control = "Git"
work_item_template = "Agile"
description = "Managed by Terraform"
}
data "azuredevops_group" "example-readers" {
project_id = azuredevops_project.example.id
name = "Readers"
}
resource "azuredevops_project_permissions" "example-permission" {
project_id = azuredevops_project.example.id
principal = data.azuredevops_group.example-readers.id
permissions = {
DELETE = "Deny"
EDIT_BUILD_STATUS = "NotSet"
WORK_ITEM_MOVE = "Allow"
DELETE_TEST_RESULTS = "Deny"
}
}
The following arguments are supported:
-
project_id
- (Required) The ID of the project to assign the permissions. -
principal
- (Required) Thegroup
principal to assign the permissions. -
permissions
- (Required) the permissions to assign. The following permissions are availablePermission Description GENERIC_READ View project-level information GENERIC_WRITE Edit project-level information DELETE Delete team project PUBLISH_TEST_RESULTS Create test runs ADMINISTER_BUILD Administer a build START_BUILD Start a build EDIT_BUILD_STATUS Edit build quality UPDATE_BUILD Write to build operational store DELETE_TEST_RESULTS Delete test runs VIEW_TEST_RESULTS View test runs MANAGE_TEST_ENVIRONMENTS Manage test environments MANAGE_TEST_CONFIGURATIONS Manage test configurations WORK_ITEM_DELETE Delete and restore work items WORK_ITEM_MOVE Move work items out of this project WORK_ITEM_PERMANENTLY_DELETE Permanently delete work items RENAME Rename team project MANAGE_PROPERTIES Manage project properties MANAGE_SYSTEM_PROPERTIES Manage system project properties BYPASS_PROPERTY_CACHE Bypass project property cache BYPASS_RULES Bypass rules on work item updates SUPPRESS_NOTIFICATIONS Suppress notifications for work item updates UPDATE_VISIBILITY Update project visibility CHANGE_PROCESS Change process of team project. AGILETOOLS_BACKLOG Agile backlog management. AGILETOOLS_PLANS Agile plans.
replace
- (Optional) Replace (true
) or merge (false
) the permissions. Default:true
The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 10 minutes) Used when creating the Project Permission.read
- (Defaults to 5 minute) Used when retrieving the Project Permission.update
- (Defaults to 10 minutes) Used when updating the Project Permission.delete
- (Defaults to 10 minutes) Used when deleting the Project Permission.
The resource does not support import.
- Project & Team: vso.security_manage - Grants the ability to read, write, and manage security permissions.