forked from Azure/azure-docs-powershell-azuread
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGet-MsolUserRole.yml
62 lines (59 loc) · 2 KB
/
Get-MsolUserRole.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
### YamlMime:PowershellCmdlet
summary: |-
Gets administrator roles to which a user belongs.
module: MSOnline
notes: ""
syntaxes:
- Get-MsolUserRole -ObjectId <Guid> [-TenantId <Guid>] [<CommonParameters>]
- Get-MsolUserRole -UserPrincipalName <String> [-TenantId <Guid>] [<CommonParameters>]
examples:
- title: 'Example 1: Get user groups'
code: |-
PS C:\> Get-MsolUserRole -UserPrincipalName "[email protected]"
description: |-
This command retrieves all groups that [email protected] is a member of.
summary: ""
parameters:
- type: <xref href="Guid" data-throw-if-not-resolved="False" />
name: ObjectId
isRequired: true
description: |+
Specifies the unique ID of the user to retrieve roles for.
defaultValue: None
pipelineInput: true
position: Named
aliases: ""
parameterValueGroup: ""
- type: <xref href="Guid" data-throw-if-not-resolved="False" />
name: TenantId
description: |+
Specifies the unique ID of the tenant on which to perform the operation.
The default value is the tenant of the current user.
This parameter applies only to partner users.
defaultValue: None
pipelineInput: true
position: Named
aliases: ""
parameterValueGroup: ""
- type: <xref href="String" data-throw-if-not-resolved="False" />
name: UserPrincipalName
isRequired: true
description: |+
Specifies the user principal name of the user to retrieve roles for.
defaultValue: None
pipelineInput: true
position: Named
aliases: ""
parameterValueGroup: ""
uid: MSOnline.Get-MsolUserRole
name: Get-MsolUserRole
description: |-
The **Get-MsolUserRole** cmdlet gets all of the administrator roles to which the specified user belongs.
This cmdlet will also return roles that the user is a member of through security group membership.
metadata:
external help file: Microsoft.Online.Administration.Automation.PSModule.dll-Help.xml
online version: ""
schema: 2.0.0
ms.assetid: 13C8D948-E093-45E7-A5B5-BC38FAFCCEC7
ms.reviewer: stevemutungi
ms.custom: iamfeature=PowerShell