Gets Azure DevOps Permissions
Gets Azure DevOps security permissions.
- https://docs.microsoft.com/en-us/rest/api/azure/devops/security/access%20control%20lists/query
- https://docs.microsoft.com/en-us/rest/api/azure/devops/security/security%20namespaces/query
- https://docs.microsoft.com/en-us/azure/devops/organizations/security/namespace-reference
Get-ADOPermission -Organization MyOrganization -Project MyProject -PersonalAccessToken $pat
Get-ADOProject -Organization MyOrganization -Project MyProject | # Get the project
Get-ADOTeam | # get the teams within the project
Get-ADOPermission -Dashboard # get the dashboard permissions of each team within the project.
The Organization.
Type | Requried | Postion | PipelineInput |
---|---|---|---|
[String] |
true | named | true (ByPropertyName) |
If set, will list the type of permisssions.
Type | Requried | Postion | PipelineInput |
---|---|---|---|
[Switch] |
false | named | false |
The Security Namespace ID. For details about each namespace, see: https://docs.microsoft.com/en-us/azure/devops/organizations/security/namespace-reference
Type | Requried | Postion | PipelineInput |
---|---|---|---|
[String] |
true | named | true (ByPropertyName) |
The Security Token.
Type | Requried | Postion | PipelineInput |
---|---|---|---|
[String] |
false | named | true (ByPropertyName) |
The Project ID. If this is provided without anything else, will get permissions for the projectID
Type | Requried | Postion | PipelineInput |
---|---|---|---|
[String] |
true | named | true (ByPropertyName) |
If provided, will get permissions related to a given teamID. ( see Get-ADOTeam)
Type | Requried | Postion | PipelineInput |
---|---|---|---|
[String] |
false | named | true (ByPropertyName) |
If provided, will get permissions related to an Area Path. ( see Get-ADOAreaPath )
Type | Requried | Postion | PipelineInput |
---|---|---|---|
[String] |
true | named | true (ByPropertyName) |
If provided, will get permissions related to an Iteration Path. ( see Get-ADOIterationPath )
Type | Requried | Postion | PipelineInput |
---|---|---|---|
[String] |
true | named | true (ByPropertyName) |
If set, will get common permissions related to a project. These are:
- Builds
- Boards
- Dashboards
- Git Repositories
- ServiceEndpoints
- Project Permissions
- Service Endpoints
- ServiceHooks
Type | Requried | Postion | PipelineInput |
---|---|---|---|
[Switch] |
true | named | true (ByPropertyName) |
If set, will get permissions for tagging related to the current project.
Type | Requried | Postion | PipelineInput |
---|---|---|---|
[Switch] |
true | named | true (ByPropertyName) |
If set, will get permissions for analytics related to the current project.
Type | Requried | Postion | PipelineInput |
---|---|---|---|
[Switch] |
true | named | true (ByPropertyName) |
If set, will get permissions for Team Foundation Version Control related to the current project.
Type | Requried | Postion | PipelineInput |
---|---|---|---|
[Switch] |
true | named | true (ByPropertyName) |
If set, will get permissions for Delivery Plans.
Type | Requried | Postion | PipelineInput |
---|---|---|---|
[Switch] |
true | named | true (ByPropertyName) |
If set, will get dashboard permissions related to the current project.
Type | Requried | Postion | PipelineInput |
---|---|---|---|
[Switch] |
true | named | true (ByPropertyName) |
If set, will get all service endpoints permissions.
Type | Requried | Postion | PipelineInput |
---|---|---|---|
[Switch] |
true | named | true (ByPropertyName) |
If set, will get endpoint permissions related to a particular endpoint.
Type | Requried | Postion | PipelineInput |
---|---|---|---|
[String] |
true | named | true (ByPropertyName) |
The Build Definition ID
Type | Requried | Postion | PipelineInput |
---|---|---|---|
[String] |
true | named | true (ByPropertyName) |
The path to the build.
Type | Requried | Postion | PipelineInput |
---|---|---|---|
[String] |
false | named | true (ByPropertyName) |
If set, will get build and release permissions for a given project.
Type | Requried | Postion | PipelineInput |
---|---|---|---|
[Switch] |
true | named | true (ByPropertyName) |
If provided, will get build and release permissions for a given project's repositoryID
Type | Requried | Postion | PipelineInput |
---|---|---|---|
[String] |
true | named | true (ByPropertyName) |
If provided, will get permissions for a given branch within a repository
Type | Requried | Postion | PipelineInput |
---|---|---|---|
[String] |
false | named | true (ByPropertyName) |
If set, will get permissions for repositories within a project
Type | Requried | Postion | PipelineInput |
---|---|---|---|
[Switch] |
true | named | true (ByPropertyName) |
If set, will get permissions for repositories within a project
Type | Requried | Postion | PipelineInput |
---|---|---|---|
[Switch] |
true | named | true (ByPropertyName) |
The Descriptor
Type | Requried | Postion | PipelineInput |
---|---|---|---|
[String[]] |
false | named | true (ByPropertyName) |
If set and this is a hierarchical namespace, return child ACLs of the specified token.
Type | Requried | Postion | PipelineInput |
---|---|---|---|
[Switch] |
false | named | true (ByPropertyName) |
If set, populate the extended information properties for the access control entries in the returned lists.
Type | Requried | Postion | PipelineInput |
---|---|---|---|
[Switch] |
false | named | true (ByPropertyName) |
If set, will expand the ACE dictionary returned
Type | Requried | Postion | PipelineInput |
---|---|---|---|
[Switch] |
false | named | false |
The server. By default https://dev.azure.com/. To use against TFS, provide the tfs server URL (e.g. http://tfsserver:8080/tfs).
Type | Requried | Postion | PipelineInput |
---|---|---|---|
[Uri] |
false | named | true (ByPropertyName) |
The api version. By default, 5.1-preview. If targeting TFS, this will need to change to match your server version. See: https://docs.microsoft.com/en-us/azure/devops/integrate/concepts/rest-api-versioning?view=azure-devops
Type | Requried | Postion | PipelineInput |
---|---|---|---|
[String] |
false | named | false |
PSDevOps.SecurityNamespace
PSDevOps.AccessControlList
Get-ADOPermission -Organization <String> [-PermissionType] [-Descriptor <String[]>] [-Recurse] [-IncludeExtendedInfo] [-ExpandACL] [-Server <Uri>] [-ApiVersion <String>] [<CommonParameters>]
Get-ADOPermission -Organization <String> -NamespaceID <String> [-SecurityToken <String>] [-Descriptor <String[]>] [-Recurse] [-IncludeExtendedInfo] [-ExpandACL] [-Server <Uri>] [-ApiVersion <String>] [<CommonParameters>]
Get-ADOPermission -Organization <String> -ProjectID <String> -Overview [-Descriptor <String[]>] [-Recurse] [-IncludeExtendedInfo] [-ExpandACL] [-Server <Uri>] [-ApiVersion <String>] [<CommonParameters>]
Get-ADOPermission -Organization <String> -ProjectID <String> -ProjectRepository [-Descriptor <String[]>] [-Recurse] [-IncludeExtendedInfo] [-ExpandACL] [-Server <Uri>] [-ApiVersion <String>] [<CommonParameters>]
Get-ADOPermission -Organization <String> -ProjectID <String> -RepositoryID <String> [-BranchName <String>] [-Descriptor <String[]>] [-Recurse] [-IncludeExtendedInfo] [-ExpandACL] [-Server <Uri>] [-ApiVersion <String>] [<CommonParameters>]
Get-ADOPermission -Organization <String> -ProjectID <String> -IterationPath <String> [-Descriptor <String[]>] [-Recurse] [-IncludeExtendedInfo] [-ExpandACL] [-Server <Uri>] [-ApiVersion <String>] [<CommonParameters>]
Get-ADOPermission -Organization <String> -ProjectID <String> -BuildPermission [-Descriptor <String[]>] [-Recurse] [-IncludeExtendedInfo] [-ExpandACL] [-Server <Uri>] [-ApiVersion <String>] [<CommonParameters>]
Get-ADOPermission -Organization <String> -ProjectID <String> -DefinitionID <String> [-BuildPath <String>] [-Descriptor <String[]>] [-Recurse] [-IncludeExtendedInfo] [-ExpandACL] [-Server <Uri>] [-ApiVersion <String>] [<CommonParameters>]
Get-ADOPermission -Organization <String> -ProjectID <String> -ManageTFVC [-Descriptor <String[]>] [-Recurse] [-IncludeExtendedInfo] [-ExpandACL] [-Server <Uri>] [-ApiVersion <String>] [<CommonParameters>]
Get-ADOPermission -Organization <String> -ProjectID <String> -Tagging [-Descriptor <String[]>] [-Recurse] [-IncludeExtendedInfo] [-ExpandACL] [-Server <Uri>] [-ApiVersion <String>] [<CommonParameters>]
Get-ADOPermission -Organization <String> -ProjectID <String> [-TeamID <String>] -Dashboard [-Descriptor <String[]>] [-Recurse] [-IncludeExtendedInfo] [-ExpandACL] [-Server <Uri>] [-ApiVersion <String>] [<CommonParameters>]
Get-ADOPermission -Organization <String> -ProjectID <String> -AreaPath <String> [-Descriptor <String[]>] [-Recurse] [-IncludeExtendedInfo] [-ExpandACL] [-Server <Uri>] [-ApiVersion <String>] [<CommonParameters>]
Get-ADOPermission -Organization <String> [-ProjectID <String>] -EndpointID <String> [-Descriptor <String[]>] [-Recurse] [-IncludeExtendedInfo] [-ExpandACL] [-Server <Uri>] [-ApiVersion <String>] [<CommonParameters>]
Get-ADOPermission -Organization <String> [-ProjectID <String>] -Analytics [-Descriptor <String[]>] [-Recurse] [-IncludeExtendedInfo] [-ExpandACL] [-Server <Uri>] [-ApiVersion <String>] [<CommonParameters>]
Get-ADOPermission -Organization <String> -ProjectID <String> [-Descriptor <String[]>] [-Recurse] [-IncludeExtendedInfo] [-ExpandACL] [-Server <Uri>] [-ApiVersion <String>] [<CommonParameters>]
Get-ADOPermission -Organization <String> -Plan [-Descriptor <String[]>] [-Recurse] [-IncludeExtendedInfo] [-ExpandACL] [-Server <Uri>] [-ApiVersion <String>] [<CommonParameters>]
Get-ADOPermission -Organization <String> -ServiceEndpoint [-Descriptor <String[]>] [-Recurse] [-IncludeExtendedInfo] [-ExpandACL] [-Server <Uri>] [-ApiVersion <String>] [<CommonParameters>]
Get-ADOPermission -Organization <String> [-BranchName <String>] -AllRepository [-Descriptor <String[]>] [-Recurse] [-IncludeExtendedInfo] [-ExpandACL] [-Server <Uri>] [-ApiVersion <String>] [<CommonParameters>]