Gets information about the user roles of which the current user or a specified user is a member.
Description
The Get-SCUserRoleMembership cmdlet gets information about the user roles of which the current user or a specified user is a member.
For more information about Get-SCUserRoleMembership, type "Get-Help Get-SCUserRoleMembership -online".
Parameters
UserName
Required?
false
Accept Pipeline Input?
false
Position?
0
Specifies a the name of a user. Enter a user name with the format Domain\User.
ForSharing
Required?
false
Accept Pipeline Input?
false
Position?
named
Returns information about self-service user roles to which the user belongs that can share resources.
Resource
Required?
false
Accept Pipeline Input?
false
Position?
named
Specifies a resource object.
VMMServer
Required?
false
Accept Pipeline Input?
true (ByValue)
Position?
named
Specifies a VMM server object.
Examples
1: Get information about the user
roles the current user is a member of.
PS C:\> Get-SCUserRoleMembership
This command returns the Name, Description, and UserRoleProfile for each user role the current user is a member of.