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
Name | Type | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|---|
Namespace | WMNamespace | Specifies the workload namespace to grant access to. | 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 | |
Domain | String | Specifies the user's domain. For local users - specify "localos". | true | False | |
PrincipalName | String | Specifies the name of the user or group. | true | False | |
PrincipalType | WMNamespacePermissionPrincipalType | Specifies the type of the security principal - either a user or a group. | true | False | |
Role | WMNamespacePermissionRole | Specifies the role that you want to grant to the user or group. | true | False | |
Server | VIServer[] | 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. | false | 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:\> New-WMNamespacePermission Development -Role Edit -Domain localos -PrincipalType User -PrincipalName Alice
Grants the user Alice an 'Edit' access to the Development namespace.