vSphere PowerCLI Reference

Get-CIUser

Synopsis

This cmdlet retrieves cloud users.

Syntax

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

Related Commands

Online version
Get-CIRole

Detailed Description

This cmdlet retrieves cloud users.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
NameString[]Specifies the names of the cloud users you want to retrieve.falsefalse
IdString[]Specifies the IDs of the cloud users you want to retrieve.truefalse
OrgOrg[]Specifies the organizations to which the users you want to retrieve belong.falsetrue (ByValue)
RoleCIRole[]Specifies the roles of the users you want to retrieve.falsetrue (ByValue)
ServerCIServer[]Specifies the cloud servers 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 Connect-CIServer.falsefalse

Return Type

Zero or more CIUser objects

Notes

Retrieving a user's Org property returns $null if the user is a member of t he System organization. To ensure compatibility with future versions, all s cripts checking if a user is a member of the System organization must use t he following syntax: $user.Org -eq $null -or $user.Org.Name -like 'System'

Examples

-------------- Example 1 --------------

Get-CIUser -Org Org

Gets a list of the users in the specified organization.

-------------- Example 2 --------------

Get-CIUser -Org Organization -Role "Catalog Author"

Gets a list of the organization users that have the "Catalog Author" role.

-------------- Example 3 --------------

Get-CIRole | Get-CIUser

Gets the users with the provided roles.

-------------- Example 4 --------------

Get-CIUser User*

Gets a list of users with names that start with "User".


Copyright © 1998 - 2014 VMware, Inc. All rights reserved.