New-WMNamespacePermission

Grants an access permission to a workload namespace.

Syntax

-Domain  <String>
-Namespace  <WMNamespace>
-PrincipalName  <String>
-PrincipalType  <WMNamespacePermissionPrincipalType>
-Role  <WMNamespacePermissionRole>
[-Server  <VIServer[]>]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
Domain
String named Specifies the user's domain. For local users - specify "localos".
required
Namespace
WMNamespace named
  • pipeline
  • Specifies the workload namespace to grant access to.
    required
    PrincipalName
    String named Specifies the name of the user or group.
    required
    PrincipalType
    WMNamespacePermissionPrincipalType named Specifies the type of the security principal - either a user or a group.
    required
    Role
    WMNamespacePermissionRole named Specifies the role that you want to grant to the user or group.
    optional
    Server
    VIServer[] named Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of the Connect-VIServer cmdlet.

    Output

    VMware.VimAutomation.WorkloadManagement.Types.V1.WMNamespacePermission

    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.

    Related Commands

    Feedback

    Was this page helpful?