Syntax
Set-WMNamespacePermission [-Permission] <WMNamespacePermission[]> -Role {View | Edit} [-Confirm] [-WhatIf] [<CommonParameters>]Related Commands
Detailed Description
Modifies an access permission to a workload namespace.Parameters
Name | Type | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|---|
Permission | WMNamespacePermission[] | Specifies the access permissions that you want to change. | true | True (ByValue) | |
Confirm | SwitchParameter | If the value is $true, indicates that the cmdlet asks for confirmation before running. If the value is $false, the cmdlet runs without asking for user confirmation. | false | False | |
Role | WMNamespacePermissionRole | Specifies the new role that you want to set. | true | False | |
WhatIf | SwitchParameter | Indicates that the cmdlet is run only to display the changes that would be made and actually no objects are modified. | false | False |
Return Type
VMware.VimAutomation.WorkloadManagement.Types.V1.WMNamespacePermissionNotes
Examples
-------------------------- Example 1 --------------------------
PS C:\> Get-WMNamespacePermission * -PrincipalName Alice | Set-WMNamespacePermission -Role View
Retrieves the permissions that Alice has on all connected workload namespaces and modifies thier role to 'View'.