Skip to content

Commit 7dba601

Browse files
authored
Merge pull request #2945 from msewaweru/sfi-get-mgdirectoryrole
Updated example to remove mentions of Global admin
2 parents f4348e1 + 1000272 commit 7dba601

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

src/Identity.DirectoryManagement/v1.0/examples/Get-MgDirectoryRole.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@
44
Get-MgDirectoryRole | Format-List
55
66
DeletedDateTime :
7-
Description : Can manage all aspects of Azure AD and Microsoft services that use Azure AD identities.
8-
DisplayName : Global Administrator
9-
Id : a2d10e79-df32-47fc-86ef-64d199860810
7+
Description : Can read basic directory information. Commonly used to grant directory read access to
8+
applications and guests.
9+
DisplayName : Directory Readers
10+
Id : 86596a70-0099-457d-8c89-1f5085b395ca
1011
Members :
11-
RoleTemplateId : 1f12db9c-dbb3-410d-a893-4c0bc322bf85
12+
RoleTemplateId : 88d8e3e3-8f55-4a1e-953a-9b9898b8876b
1213
ScopedMembers :
1314
AdditionalProperties : {}
1415
```
@@ -18,17 +19,18 @@ This examples gets all the available directory roles.
1819
### Example 2: Get a directory role by Id
1920

2021
```powershell
21-
Get-MgDirectoryRole -DirectoryRoleId 'a2d10e79-df32-47fc-86ef-64d199860810' |
22+
Get-MgDirectoryRole -DirectoryRoleId '86596a70-0099-457d-8c89-1f5085b395ca' |
2223
Format-List
2324
2425
DeletedDateTime :
25-
Description : Can manage all aspects of Azure AD and Microsoft services that use Azure AD identities.
26-
DisplayName : Global Administrator
27-
Id : a2d10e79-df32-47fc-86ef-64d199860810
26+
Description : Can read basic directory information. Commonly used to grant directory read access to
27+
applications and guests.
28+
DisplayName : Directory Readers
29+
Id : 86596a70-0099-457d-8c89-1f5085b395ca
2830
Members :
29-
RoleTemplateId : 1f12db9c-dbb3-410d-a893-4c0bc322bf85
31+
RoleTemplateId : 88d8e3e3-8f55-4a1e-953a-9b9898b8876b
3032
ScopedMembers :
31-
AdditionalProperties : {}
33+
AdditionalProperties : {[@odata.context, https://graph.microsoft.com/v1.0/$metadata#directoryRoles/$entity]}
3234
```
3335

3436
This example gets the directory role based on the specified Id.

0 commit comments

Comments
 (0)