From 15f9c723f94141bbceccff98dc50b0a5ffdde16b Mon Sep 17 00:00:00 2001 From: Eunice Waweru <73849846+msewaweru@users.noreply.github.com> Date: Fri, 6 Sep 2024 12:46:53 +0300 Subject: [PATCH] Updated example to remove mentions of Global admin --- .../v1.0/examples/Get-MgDirectoryRole.md | 22 ++++++++++--------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDirectoryRole.md b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDirectoryRole.md index b056277d9ca..9c6e39865f8 100644 --- a/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDirectoryRole.md +++ b/src/Identity.DirectoryManagement/v1.0/examples/Get-MgDirectoryRole.md @@ -4,11 +4,12 @@ Get-MgDirectoryRole | Format-List DeletedDateTime : -Description : Can manage all aspects of Azure AD and Microsoft services that use Azure AD identities. -DisplayName : Global Administrator -Id : a2d10e79-df32-47fc-86ef-64d199860810 +Description : Can read basic directory information. Commonly used to grant directory read access to + applications and guests. +DisplayName : Directory Readers +Id : 86596a70-0099-457d-8c89-1f5085b395ca Members : -RoleTemplateId : 1f12db9c-dbb3-410d-a893-4c0bc322bf85 +RoleTemplateId : 88d8e3e3-8f55-4a1e-953a-9b9898b8876b ScopedMembers : AdditionalProperties : {} ``` @@ -18,17 +19,18 @@ This examples gets all the available directory roles. ### Example 2: Get a directory role by Id ```powershell -Get-MgDirectoryRole -DirectoryRoleId 'a2d10e79-df32-47fc-86ef-64d199860810' | +Get-MgDirectoryRole -DirectoryRoleId '86596a70-0099-457d-8c89-1f5085b395ca' | Format-List DeletedDateTime : -Description : Can manage all aspects of Azure AD and Microsoft services that use Azure AD identities. -DisplayName : Global Administrator -Id : a2d10e79-df32-47fc-86ef-64d199860810 +Description : Can read basic directory information. Commonly used to grant directory read access to + applications and guests. +DisplayName : Directory Readers +Id : 86596a70-0099-457d-8c89-1f5085b395ca Members : -RoleTemplateId : 1f12db9c-dbb3-410d-a893-4c0bc322bf85 +RoleTemplateId : 88d8e3e3-8f55-4a1e-953a-9b9898b8876b ScopedMembers : -AdditionalProperties : {} +AdditionalProperties : {[@odata.context, https://graph.microsoft.com/v1.0/$metadata#directoryRoles/$entity]} ``` This example gets the directory role based on the specified Id.