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 groups and permissions for azure_devops_v1 #291

Merged
merged 1 commit into from
Jan 18, 2022
Merged

Add groups and permissions for azure_devops_v1 #291

merged 1 commit into from
Jan 18, 2022

Commits on Dec 14, 2021

  1. Add groups and permissions for azure_devops_v1

    This commit extends azure_devops_v1 to allow the user to create groups,
    and assign these groups permissions to AZDO projects and pipelines
    ("build definitions").
    
    The following example will:
    
    1. Create a group in AZDO called "Contoso Group"
    2. Added UPNs paul and john to this group
    3. Assign this group full permissions on the project and build.
    
    ```
    groups = {
      contoso = {
        project_key  = "contoso_project"
        display_name = "Contoso Group"
        description  = "Group for Contoso Team Members"
        members = {
          user_principal_names = [
            "paul.bourke@contoso.com",
            "john.doe@contoso.com",
          ]
        }
      }
    }
    
    permissions = {
      projects = {
        contoso_project = {
          group_key = "contoso_project"
          permissions = {
            "GENERIC_READ"     = "Allow",
            "GENERIC_WRITE"    = "Allow",
            "START_BUILD"      = "Allow",
            "ADMINISTER_BUILD" = "Allow",
          }
        }
      }
    
      build_definitions = {
        end_to_end = {
          project_key = "contoso_project"
          group_key   = "contoso"
          permissions = {
            "ViewBuilds"          = "Allow",
            "QueueBuilds"         = "Allow",
            "ManageBuildQueue"    = "Allow",
            "StopBuilds"          = "Allow",
            "ViewBuildDefinition" = "Allow",
          }
        }
    
        rover_build = {
          project_key = "contoso_project"
          group_key   = "contoso"
          permissions = {
            "ViewBuilds"          = "Allow",
            "QueueBuilds"         = "Allow",
            "ManageBuildQueue"    = "Allow",
            "StopBuilds"          = "Allow",
            "ViewBuildDefinition" = "Allow",
          }
        }
      }
    }
    ```
    brk3 committed Dec 14, 2021
    Configuration menu
    Copy the full SHA
    e103d69 View commit details
    Browse the repository at this point in the history