Skip to content

Latest commit

 

History

History
 
 

user-management

Add-CsUser

Create a new user

References

Documentation, Swagger

Parameters

-Username: The user's email address (or username)

-First: The user's first name

-Last: The user's last name

Example

PS> Add-CsUser -Username <string> -First <string> -Last <string>

Add-CsUserRole

Assign one or more roles to an existing user

References

Documentation, Swagger

Parameters

-Id: ID of a user

-Role: An array of one or more roles to assign to the user

Example

PS> Add-CsUserRole -Id <string> -Role @(<string>, <string>)

Edit-CsUser

Modify an existing user's first or last name

References

Documentation, Swagger

Parameters

-Id: ID of a user

-First: The user's first name

-Last: The user's last name

Example

PS> Edit-CsUser -Id <string> -Last <string>

Get-CsRole

List all roles available in your account

References

Documentation, Swagger

Example

PS> Get-CsRole

Get-CsUserId

Retrieve all User Ids in your account, or an Id for a specific Username

References

Documentation, Swagger

Parameters

-Username: This is usually the user’s email address, but may vary based on your configuration

Example

PS> Get-CsUserId

Get-CsUserInfo

Get info about user IDs

References

Documentation, Swagger

Parameters

-Id: ID of one or more users

Example

PS> Get-CsUserInfo -Id @(<string>, <string>)

Get-CsUsername

List all usernames (typically email addresses) in your account

References

Documentation, Swagger

Example

PS> Get-CsUsername

Get-CsUserRole

Show roles assigned to a user

References

Swagger

Parameters

-Id: ID of a user

Example

PS> Get-CsUserRole -Id <string>

Remove-CsUser

Delete a user permanently

References

Documentation, Swagger

Parameters

-Id: ID of a user

Example

PS> Remove-CsUser -Id <string>

Remove-CsUserRole

Revoke one or more roles from a user

References

Documentation, Swagger

Parameters

-Id: ID of a user

-Role: An array of one or more roles to remove from the user

Example

PS> Remove-CsUserRole -Id <string> -Role @(<string>, <string>)