PowerCLI Reference

Set-WMNamespacePermission

Synopsis

Modifies an access permission to a workload namespace.

Syntax

Set-WMNamespacePermission [-Permission] <WMNamespacePermission[]> -Role {View | Edit} [-Confirm] [-WhatIf] [<CommonParameters>]

Related Commands

Detailed Description

Modifies an access permission to a workload namespace.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
PermissionWMNamespacePermission[]Specifies the access permissions that you want to change.trueTrue (ByValue)
ConfirmSwitchParameterIf 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.falseFalse
RoleWMNamespacePermissionRoleSpecifies the new role that you want to set.trueFalse
WhatIfSwitchParameterIndicates that the cmdlet is run only to display the changes that would be made and actually no objects are modified.falseFalse

Return Type

VMware.VimAutomation.WorkloadManagement.Types.V1.WMNamespacePermission

Notes

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'.


Copyright © VMware, Inc. All rights reserved.