|
26 | 26 | # If this is provided without anything else, will get permissions for the projectID |
27 | 27 | [Parameter(Mandatory,ValueFromPipelineByPropertyName,ParameterSetName='Project')] |
28 | 28 | [Parameter(ValueFromPipelineByPropertyName,ParameterSetName='Analytics')] |
| 29 | + [Parameter(ValueFromPipelineByPropertyName,ParameterSetName='EndpointID')] |
29 | 30 | [Parameter(Mandatory,ValueFromPipelineByPropertyName,ParameterSetName='AreaPath')] |
30 | 31 | [Parameter(Mandatory,ValueFromPipelineByPropertyName,ParameterSetName='Dashboard')] |
31 | 32 | [Parameter(Mandatory,ValueFromPipelineByPropertyName,ParameterSetName='IterationPath')] |
|
97 | 98 | [switch] |
98 | 99 | $Tagging, |
99 | 100 |
|
| 101 | + |
100 | 102 | # If set, will set permissions for Team Foundation Version Control related to the current project. |
101 | 103 | [Parameter(Mandatory,ValueFromPipelineByPropertyName,ParameterSetName='ManageTFVC')] |
102 | 104 | [switch] |
103 | 105 | $ManageTFVC, |
104 | 106 |
|
105 | | - # If set, will get permissions for Delivery Plans. |
| 107 | + # If set, will set permissions for Delivery Plans. |
106 | 108 | [Parameter(Mandatory,ValueFromPipelineByPropertyName,ParameterSetName='Plan')] |
107 | 109 | [switch] |
108 | 110 | $Plan, |
109 | 111 |
|
110 | | - # If set, will get dashboard permissions related to the current project. |
| 112 | + # If set, will set dashboard permissions related to the current project. |
111 | 113 | [Parameter(Mandatory,ValueFromPipelineByPropertyName,ParameterSetName='Dashboard')] |
112 | 114 | [Alias('Dashboards')] |
113 | 115 | [switch] |
114 | 116 | $Dashboard, |
| 117 | + |
| 118 | + # If set, will set endpoint permissions related to a particular endpoint. |
| 119 | + [Parameter(Mandatory,ValueFromPipelineByPropertyName,ParameterSetName='EndpointID')] |
| 120 | + [string] |
| 121 | + $EndpointID, |
115 | 122 |
|
116 | 123 | # If set, will list the type of permisssions. |
117 | 124 | [Parameter(ParameterSetName='securitynamespaces')] |
|
282 | 289 | SecurityToken = "Plan" |
283 | 290 | } + $PSBoundParameters) |
284 | 291 | } |
| 292 | + EndpointID { |
| 293 | + $q.Enqueue(@{ |
| 294 | + NamespaceID = '49b48001-ca20-4adc-8111-5b60c903a50c' |
| 295 | + SecurityToken = "endpoints/$( |
| 296 | + if ($ProjectID) {"$ProjectID/"} else { "Collection/"} |
| 297 | + )$( |
| 298 | + if ($EndpointID) {$EndpointID} |
| 299 | + )" |
| 300 | + } + $PSBoundParameters) |
| 301 | + } |
285 | 302 | Tagging { |
286 | 303 | $q.Enqueue(@{ |
287 | 304 | NamespaceID = 'bb50f182-8e5e-40b8-bc21-e8752a1e7ae2' |
|
0 commit comments