PowerCLI Reference

New-WMNamespacePermission

Synopsis

Grants an access permission to a workload namespace.

Syntax

New-WMNamespacePermission [-Namespace] <WMNamespace> -Domain <String> -PrincipalName <String> -PrincipalType {User | Group} -Role {View | Edit} [-Server <VIServer[]>] [-Confirm] [-WhatIf] [<CommonParameters>]

Related Commands

Detailed Description

Grants an access permission to a workload namespace.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
NamespaceWMNamespaceSpecifies the workload namespace to grant access to.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
DomainStringSpecifies the user's domain. For local users - specify "localos".trueFalse
PrincipalNameStringSpecifies the name of the user or group.trueFalse
PrincipalTypeWMNamespacePermissionPrincipalTypeSpecifies the type of the security principal - either a user or a group.trueFalse
RoleWMNamespacePermissionRoleSpecifies the role that you want to grant to the user or group.trueFalse
ServerVIServer[]Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is given to this parameter, the command runs on the default servers. For more information about default servers, see the description of the Connect-VIServer cmdlet.falseFalse
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:\> New-WMNamespacePermission Development -Role Edit -Domain localos -PrincipalType User -PrincipalName Alice

Grants the user Alice an 'Edit' access to the Development namespace.


Copyright © VMware, Inc. All rights reserved.