VcsUser Category | Vmware PowerCLI Reference

Vcs User Category

Cmdlets are usually implemented around resource operations. The four basic operations are CREATE, READ, UPDATE and DELETE. This set of operations is known as CRUD. Most of the cmdlets support CRUD which are respectively cmdlets that start with the New/Get/Set/Remove cmdlet verbs but they also may have additional operations

Step 1: Retrieve a object by running a Get command

You can READ objects by using Get-VcsUser cmdlet. See example below:

# Retrieves the user with an "UserId" ID.

Get-VcsUser -Id "UserId"

Step 2 : Run commands from the CRUD group

You can CREATE objects by using New-VcsUserInvitation cmdlet. See example below:

# Creates a new user invitation for the user with an email "[email protected]". Users organization roles are $organizationRoles. Users service roles are $serviceRoles.

New-VcsUserInvitation -Email "[email protected]" -OrganizationRole $organizationRoles -ServiceRole $serviceRoles
You can REMOVE objects by using Remove-VcsUser cmdlet. See example below:

# Removes the specified $USER user from the VMware Cloud Services Platform.

Remove-VcsUser -User $USER

Step 3: Explore More Related Commands:


Get-VcsUserInvitation This cmdlet retrieves user invitations from the VMware Cloud Services Platform.
Remove-VcsUserInvitation This cmdlet revokes a user invitation from the VMware Cloud Services Platform.