Retrieving vCloud users

You can use the Get-CIUser cmdlet to retrieve vCloud users. The Get-CIUser cmdlet has an alias Get-PIUser.

The syntax of the Get-CIUser cmdlet is as follows and the first parameter set is the default:

Get-CIUser [[-Name] <String[]>] [-Org <Org[]>] [-Role <CIRole[]>]
    [-Server <CIServer[]>] [<CommonParameters>]

The second parameter set is to retrieve vCloud users by ID:

Get-CIUser -Id <String[]> [-Server <CIServer[]>] [<CommonParameters>]

The -Id parameter is required.

In the following example, we will retrieve the user [email protected] and format the output in a list view:

PowerCLI C:> Get-CIUser -Name [email protected] | Format-List


    WARNING: PowerCLI scripts should not use the 'Client' property. The
property will be removed in a future release.
WARNING: PowerCLI scripts should not use the 'Uid' property. The
property will be removed in a future release.
Href            : https://p13v37-vcd.vchs.vmware.com/api/admin/user/
                  3445d4e0-652d-43a8-a68a-378de56d9236
StoredVMQuota   :
StoredVMCount   : 0
IM              :
DeployedVMQuota :
DeployedVMCount : 0
Phone           :
Org             : student501
LdapName        :
Locked          : False
IsLDapUser      : False
HasGroupRole    : False
External        : False
Enabled         : False
FullName        :
Email           :
ExtensionData   : VMware.VimAutomation.Cloud.Views.User
Name            : [email protected]
Id              : urn:vcloud:user:3445d4e0-652d-43a8-a68a-378de56d92
                  36
Description     :
Client          : /[email protected]:student501@p13v37-
                  vcd.vchs.vmware.com:443/
Uid             : /[email protected]:student501@p13v37-
                  vcd.vchs.vmware.com:443/CIUser=urn:vcloud:user:344
                  5d4e0-652d-43a8-a68a-378de56d9236/
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.149.251.154