다음을 통해 공유


보안 그룹 추가 및 관리

Azure DevOps Services

보안 그룹은 사용 권한, 액세스 및 보안 그룹시작하기 설명한 대로 사용 권한 및 액세스를 관리하는 데 사용됩니다. 예를 들어 기여자 그룹 또는 프로젝트 관리자 그룹의 구성원에게는 해당 그룹에 허용되는 권한이 할당됩니다.

Azure DevOps는 기본 보안 그룹으로 미리 구성됩니다. az devops 보안 그룹 명령을 사용하여 조직 또는 프로젝트에 대한 보안 그룹을 추가하고 관리할 수 있습니다. 이 명령을 사용하여 다음 작업을 수행합니다.

  • 새 보안 그룹 만들기
  • 보안 그룹 및 보안 그룹 세부 정보 보기
  • 보안 그룹 업데이트 또는 삭제
  • 그룹 및 사용자에 대한 보안 그룹 멤버 자격 관리

Note

이 문서는 Azure DevOps Services에만 적용됩니다. For Azure DevOps Server, you can manage security groups using the TFSSecurity command.

Prerequisites

Category Requirements
Permissions 프로젝트 컬렉션 관리자 그룹멤버입니다. 조직 소유자는 자동으로 이 그룹의 구성원입니다. 토큰에 대한 자세한 내용은 보안 네임스페이스 및 권한 참조참조하세요.
Tools Azure DevOps CLI 확장 . az login사용하여 로그인합니다.

보안 그룹 명령

Command Description
az devops security group create Azure DevOps 보안 그룹을 만듭니다.
az devops security group delete Azure DevOps 보안 그룹을 삭제합니다.
az devops security group list 프로젝트 또는 조직의 모든 그룹을 나열합니다.
az devops security group show 그룹 세부 정보를 표시합니다.
az devops security group update 보안 그룹의 이름 및 설명을 업데이트합니다.
az devops security group membership add 보안 그룹에 멤버를 추가합니다.
az devops security group membership list 그룹 또는 사용자의 멤버 자격을 나열합니다.
az devops security group membership remove 보안 그룹에서 멤버를 제거합니다.

다음 매개 변수는 모든 명령에 대해 선택 사항이며 이 문서에 제공된 예제에 나열되지 않습니다.

  • detect: Automatically detect organization. 허용되는 값: false, true. 기본값은 true입니다.
  • org: Azure DevOps organization URL. az devops configure -d organization=ORG_URL 사용하여 기본 조직을 구성할 수 있습니다. 기본값으로 구성되지 않았거나 git 구성을 통해 선택되는 경우 필수입니다. 예: --org https://dev.azure.com/MyOrganizationName/.

보안 그룹 만들기

az devops security group create 명령을 사용하여 보안 그룹을 만들 수 있습니다.

az devops security group create [--description]
                                [--email-id]
                                [--groups]
                                [--name]
                                [--origin-id]
                                [--project]
                                [--scope {organization, project}]

Optional parameters

  • description: Description of the new security group.
  • email-id: Create new group using the email address as a reference to an existing group from a Microsoft Entra backed provider. Required if name or origin-id is missing.
  • groups: A comma-separated list of descriptors referencing groups you want the newly created group to join.
  • name: Name of the new security group. Required if origin-id or email-id is missing.
  • origin-id: Create new group using the OriginID as a reference to an existing group from a Microsoft Entra backed provider. Required if name or email-id is missing.
  • project: Name or ID of the project in which the group should be created.
  • scope: Create group at project or organization level. Accepted values are organization and project (default).

Example

The following command creates the Account Management security group in the project MyFirstProject and shows the result in table format.

az devops security group create --name "Account Management" --project MyFirstProject --description "Management team focused on creating and maintaining customer services" --output table

Name                                 Description
-----------------------------------  ---------------------------------------------------------------------
[MyFirstProject]\Account Management  Management team focused on creating and maintaining customer services

보안 그룹 삭제

az devops security group delete 명령을 사용하여 보안 그룹을 삭제할 수 있습니다.

az devops security group delete --id
                                [--yes]

Parameters

  • id: Required. 보안 그룹 설명자입니다. 설명자를 가져오려면 az devops 보안 그룹 목록 명령을 사용합니다.
  • yes: Optional. 확인 메시지를 표시하지 않습니다.

Example

다음 명령은 지정된 설명자를 사용하여 보안 그룹을 삭제하고 확인을 요청하지 않습니다.

az devops security group delete --id vssgp.Uy0xLTktMTU1MTM3NDI0NS0xODI5NDgwMzA1LTEzNjM2MTczNTEtMjI0NzE1OTUyMC03ODEzNDk2MjItMC0wLTAtMC0x --yes

보안 그룹 나열

az devops security group list 명령을 사용하여 프로젝트 또는 조직의 모든 보안 그룹을 나열할 수 있습니다.

az devops security group list [--continuation-token]
                              [--project]
                              [--scope {organization, project}]
                              [--subject-types]

Optional parameters

  • continuation-token: If there are more results that can't be returned in a single page, the result set will contain a continuation token for retrieval of the next set of results.
  • project: List groups for a particular project.
  • scope: List the groups at project or organization level. Accepted values are organization and project (default).
  • subject-types: A comma-separated list of user subject subtypes to reduce the retrieved results. 설명자의 초기 부분(점 앞)을 필터(예: vssgp,aadgp)로 제공할 수 있습니다.

Example

The following command lists the name and descriptor for all security groups in MyFirstProject, and shows the results in table format.

az devops security group list --project MyFirstProject --output table

Name                                     Descriptor
---------------------------------------  --------------------------------------------------------------------------------------------------------------------------------------------------
[MyFirstProject]\Contributors            vssgp.Uy0xLTktMTU1MTM3NDI0NS0zMjgyMTE0Mzg4LTcyMDc3NjM2LTI5MzA1OTM5MTEtMTI2ODYyOTM0My0xLTE0MzUxMDc1MzctMzkwMDAzNTkwNS0zMTk5MDU1NDY1LTM4MDE2ODQ3MzM
[MyFirstProject]\Project Valid Users     vssgp.Uy0xLTktMTU1MTM3NDI0NS0xODI5NDgwMzA1LTEzNjM2MTczNTEtMjI0NzE1OTUyMC03ODEzNDk2MjItMC0wLTAtMC0z
[MyFirstProject]\Account Management      vssgp.Uy0xLTktMTU1MTM3NDI0NS0xODI5NDgwMzA1LTEzNjM2MTczNTEtMjI0NzE1OTUyMC03ODEzNDk2MjItMS0zNDU1MDI4NTE4LTI5Nzg5OTAxNTYtMjI4OTU2NzYyOS0xOTM2NDU3NTYw
[MyFirstProject]\Project Team            vssgp.Uy0xLTktMTU1MTM3NDI0NS0zMjgyMTE0Mzg4LTcyMDc3NjM2LTI5MzA1OTM5MTEtMTI2ODYyOTM0My0xLTM0OTQwNjM0ODktMjg4NDE3MTA4Mi0yMjkxMTIwNTYwLTM3NDc2NDkyNA
[MyFirstProject]\Readers                 vssgp.Uy0xLTktMTU1MTM3NDI0NS0zMjgyMTE0Mzg4LTcyMDc3NjM2LTI5MzA1OTM5MTEtMTI2ODYyOTM0My0xLTQ0MzQzMTA1My0yMTcyODUzNTc2LTI1MjY0NzgwNjMtMzY1NjU0NjczNQ
[MyFirstProject]\Account Administrators  vssgp.Uy0xLTktMTU1MTM3NDI0NS0xODI5NDgwMzA1LTEzNjM2MTczNTEtMjI0NzE1OTUyMC03ODEzNDk2MjItMS02NTAxNzIxNjctMzk4MTU5MTEwNC0zMjE1MTIzNjI0LTEyMTMyOTQwNQ
[MyFirstProject]\Project Administrators  vssgp.Uy0xLTktMTU1MTM3NDI0NS0xODI5NDgwMzA1LTEzNjM2MTczNTEtMjI0NzE1OTUyMC03ODEzNDk2MjItMC0wLTAtMC0x
[MyFirstProject]\Build Administrators    vssgp.Uy0xLTktMTU1MTM3NDI0NS0zMjgyMTE0Mzg4LTcyMDc3NjM2LTI5MzA1OTM5MTEtMTI2ODYyOTM0My0xLTI0MDEzNTE5NjItMzM2NTg2MzA5LTI2Mzg2ODkzMDktMzk5NTQ3OTU3MQ

보안 그룹 세부 정보 표시

az devops security group show 명령을 사용하여 보안 그룹의 세부 정보를 표시할 수 있습니다.

az devops security group show --id

Parameters

  • id: Required. 보안 그룹 설명자입니다.

Example

다음 명령은 테이블 형식의 Project 유효한 사용자 보안 그룹에 대한 세부 정보를 보여 있습니다.

az devops security group show --id vssgp.Uy0xLTktMTU1MTM3NDI0NS0xODI5NDgwMzA1LTEzNjM2MTczNTEtMjI0NzE1OTUyMC03ODEzNDk2MjItMC0wLTAtMC0z --output table

Name                                  Description
------------------------------------  ------------------------------------------------------
[MyFirstProject]\Project Valid Users  Members of this group have access to the team project.

보안 그룹 업데이트

az devops security group update 명령을 사용하여 보안 그룹의 이름과 설명을 업데이트할 수 있습니다.

az devops security group update --id
                                [--description]
                                [--name]

Parameters

  • id: Required. 보안 그룹 설명자입니다.
  • description: Optional. 보안 그룹에 대한 새 설명입니다. Required if name is missing.
  • name: Optional. 보안 그룹의 새 이름입니다. Required if description is missing.

Example

다음 명령은 지정된 설명자를 사용하여 보안 그룹의 이름을 변경하고 결과를 YAML 형식으로 표시합니다.

az devops security group update --id vssgp.Uy0xLTktMTU1MTM3NDI0NS0xODI5NDgwMzA1LTEzNjM2MTczNTEtMjI0NzE1OTUyMC03ODEzNDk2MjItMS0zNDU1MDI4NTE4LTI5Nzg5OTAxNTYtMjI4OTU2NzYyOS0xOTM2NDU3NTYw --name "Management Team" --output yaml

description: Management team focused on creating and maintaining customer services
descriptor: vssgp.Uy0xLTktMTU1MTM3NDI0NS0xODI5NDgwMzA1LTEzNjM2MTczNTEtMjI0NzE1OTUyMC03ODEzNDk2MjItMS0zNDU1MDI4NTE4LTI5Nzg5OTAxNTYtMjI4OTU2NzYyOS0xOTM2NDU3NTYw
displayName: Management Team
___domain: vstfs:///Classification/TeamProject/5417a1c3-4b04-44d1-aead-50774b9dbf5f
isCrossProject: null
isDeleted: null
isGlobalScope: null
isRestrictedVisible: null
legacyDescriptor: null
localScopeId: null
mailAddress: null
origin: vsts
originId: 8fe47a49-bfab-4356-9a85-90c5e62110be
principalName: '[MyFirstProject]\Management Team'
scopeId: null
scopeName: null
scopeType: null
securingHostId: null
specialType: null
subjectKind: group
url: https://vssps.dev.azure.com/fabrikam/_apis/Graph/Groups/vssgp.Uy0xLTktMTU1MTM3NDI0NS0xODI5NDgwMzA1LTEzNjM2MTczNTEtMjI0NzE1OTUyMC03ODEzNDk2MjItMS0zNDU1MDI4NTE4LTI5Nzg5OTAxNTYtMjI4OTU2NzYyOS0xOTM2NDU3NTYw

그룹에 멤버 추가

az devops 보안 그룹 멤버 자격 추가 명령을 사용하여 보안 그룹에 멤버를 추가할 수 있습니다.

az devops security group membership add --group-id
                                        --member-id

Parameters

  • group-id: Required. 멤버를 추가할 그룹의 설명자입니다.
  • member-id: Required. 추가할 사용자의 그룹 또는 전자 메일 주소 설명자입니다.

Example

다음 명령은 사용자 contoso@contoso.com 지정된 보안 그룹에 추가하고 결과를 테이블 형식으로 표시합니다.

az devops security group membership add --group-id vssgp.Uy0xLTktMTU1MTM3NDI0NS0yMjc3MTY5NTAtOTkzNjA1MTg2LTI1ODQxNTkyOTktMjYzMDUyNzA2OC0xLTQxNDY0Mzc4MzktMzgxMDM2MDM5MS0yNjE0MjU5MzI3LTI5MjI2MTc3OTA --member-id contoso@contoso.com --output table

Name                                 Type    Email
-----------------------------------  ------  -------------------
[MyFirstProject]\Account Management  group
contoso@contoso.com                  user    contoso@contoso.com

그룹 또는 사용자의 멤버 자격 나열

az devops security group membership list 명령을 사용하여 그룹 또는 사용자의 멤버 자격을 나열할 수 있습니다.

az devops security group membership list --id
                                         [--relationship {memberof, members}]

Parameters

  • id: Required. 멤버 자격 세부 정보가 필요한 보안 그룹 설명자 또는 사용자 이메일 주소입니다.
  • relationship: Optional. Get member of or members information for the group. The accepted values are memberof and members.

Examples

다음 명령은 지정된 보안 그룹의 멤버를 나열하고 결과를 테이블 형식으로 표시합니다.

az devops security group membership list --id vssgp.Uy0xLTktMTU1MTM3NDI0NS0yMjc3MTY5NTAtOTkzNjA1MTg2LTI1ODQxNTkyOTktMjYzMDUyNzA2OC0xLTQxNDY0Mzc4MzktMzgxMDM2MDM5MS0yNjE0MjU5MzI3LTI5MjI2MTc3OTA --output table

Name                 Type    Email                Descriptor
-------------------  ------  -------------------  ----------------------------------------------------
contoso@contoso.com  user    contoso@contoso.com  msa.NDMzMmNjOWYtYzY4Zi03YTNlLTk2ZTktYmYwM2U4NjgxOTRh

다음은 Fabrikam 파이버 프로젝트에 대한 EMail 팀의 구성원을 나열하는 또 다른 예입니다.

az devops security group membership list --id "[Fabrikam Fiber]\Email" --output table
Name               Type    Email                       Descriptor
-----------------  ------  --------------------------  ----------------------------------------------------
Christie Church    user    fabrikamfiber1@hotmail.com  msa.OThjODMzM2ItMmI4Ny03YTkwLThmZGItYWQwYmQ1YWE4MzJk
Raisa Pokrovskaya  user    fabrikamfiber5@hotmail.com  msa.ZmUwYjk5NmYtZTAyNS03NzBkLTgxNmYtMzk1NDQwYzViMzgw

그룹에서 멤버 제거

az devops security group membership remove 명령을 사용하여 보안 그룹에서 멤버를 제거할 수.

az devops security group membership remove --group-id
                                           --member-id
                                           [--yes]

Parameters

  • group-id: Required. 멤버를 제거해야 하는 그룹의 설명자입니다.
  • member-id: Required. 제거할 사용자의 그룹 또는 전자 메일 주소 설명자입니다.
  • yes: Optional. 확인 메시지를 표시하지 않습니다.

Example

다음 명령은 확인을 요청하지 않고 지정된 보안 그룹에서 사용자 contoso@contoso.com 제거합니다.

az devops security group membership remove --group-id vssgp.Uy0xLTktMTU1MTM3NDI0NS0yMjc3MTY5NTAtOTkzNjA1MTg2LTI1ODQxNTkyOTktMjYzMDUyNzA2OC0xLTQxNDY0Mzc4MzktMzgxMDM2MDM5MS0yNjE0MjU5MzI3LTI5MjI2MTc3OTA --member-id contoso@contoso.com --yes