Get-SCACUserRole

Get-SCACUserRole

Gets user roles on the server.

Syntax

Parameter Set: Managed
Get-SCACUserRole -Managed [ <CommonParameters>]

Parameter Set: MyRoles
Get-SCACUserRole -MyRoles [ <CommonParameters>]

Detailed Description

The Get-SCACUserRole cmdlet gets user roles on the server.

Parameters

-Managed

Indicates that only managed user roles are returned.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-MyRoles

Indicates that the user roles of which the logged-in user is a member are returned.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

  • System.Management.Automation.SwitchParameter, System.Management.Automation.SwitchParameter

Outputs

The output type is the type of the objects that the cmdlet emits.

  • Microsoft.SystemCenter.CloudManager.PowerShell.ACUserRole

Examples

-------------------------- EXAMPLE 1 --------------------------

Description

-----------

This command gets all managed user roles on the server, and displays information about each user role to the user.

PS C:\> Get-SCACUserRole -Managed

-------------------------- EXAMPLE 2 --------------------------

Description

-----------

This command gets all user roles that the current user is a member of, and displays information about each user role to the user.

PS C:\> Get-SCACUserRole -MyRoles

Add-SCACUserRole

Remove-SCACUserRole