Get-VIPermission
This cmdlet retrieves the permissions defined on the specified inventory objects. If no inventory objects are specified, the cmdlet retrieves all permissions available on the server.
Syntax
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
optional | Entity | VIObject[] | named |
|
Specifies the inventory items for which you want to retrieve permissions. |
optional | Principal | VIAccount[] | named |
|
Specifies the users and groups for which you want to retrieve permissions. |
optional | ProgressAction | ActionPreference | named |
|
|
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 Connect-VIServer. |
Output
VMware.VimAutomation.ViCore.Types.V1.PermissionManagement.PermissionExamples
Example 1
Get-VIPermission -Entity (Get-Datacenter) -Principal Administrator
Retrieves the permissions of the Administrator user on the provided datacenters.
Related Commands
VIPermission
This cmdlet retrieves the permissions defined on the specified inventory objects.
This cmdlet creates new permissions on the specified inventory objects for the provided users and groups in the role.
This cmdlet removes the specified permissions.
This cmdlet modifies the properties of the specified permissions.