From 107398c13711ab2925a2c871f8cac296c8492b27 Mon Sep 17 00:00:00 2001 From: Eunice Waweru <73849846+msewaweru@users.noreply.github.com> Date: Fri, 6 May 2022 13:22:55 +0300 Subject: [PATCH] Removed the scopes table --- .../Users/examples/v1.0-beta/Get-MgUser.md | 42 +++---------------- 1 file changed, 6 insertions(+), 36 deletions(-) diff --git a/src/Users/Users/examples/v1.0-beta/Get-MgUser.md b/src/Users/Users/examples/v1.0-beta/Get-MgUser.md index 846d7c07348..ce4ad75df50 100644 --- a/src/Users/Users/examples/v1.0-beta/Get-MgUser.md +++ b/src/Users/Users/examples/v1.0-beta/Get-MgUser.md @@ -17,12 +17,7 @@ UserPrincipalName : AdeleV@contoso.com This command returns a list of all users. -One of the following permissions is required to run this cmdlet; - -|Permission type| Recommended Permissions| Other Permissions| -|-----|------|------| -|Delegated (work or school account)|User.ReadBasic.All, User.Read.All| User.ReadWrite.All, Directory.Read.All| -|Application|User.Read.All|User.ReadWrite.All, Directory.Read.All| +To learn about other permissions for this resource, see the [permissions reference](/graph/permissions-reference). To consent to any of these permissions run `Connect-MgGraph -Scopes Permission`. For example, `Connect-MgGraph -Scopes User.ReadBasic.All, User.Read.All`. @@ -41,12 +36,7 @@ UserPrincipalName : Adams@contoso.com This command gets the specified user. -One of the following permissions is required to run this cmdlet; - -|Permission type| Recommended Permissions| Other Permissions| -|-----|------|------| -|Delegated (work or school account)|User.ReadBasic.All, User.Read.All| User.ReadWrite.All, Directory.Read.All| -|Application|User.Read.All|User.ReadWrite.All, Directory.Read.All| +To learn about other permissions for this resource, see the [permissions reference](/graph/permissions-reference). To consent to any of these permissions run `Connect-MgGraph -Scopes Permission`. For example, `Connect-MgGraph -Scopes User.ReadBasic.All, User.Read.All`. @@ -69,12 +59,7 @@ Id DisplayName Mail The example gets a list of all users. The $userCount variable contains the count of the objects in the result. Advanced query requires the ConsistencyLevel parameter set to `eventual` and the Count parameter in the command. For more information about *ConsistencyLevel* and *Count*, see [Advanced query capabilities on Azure AD directory objects](/graph/aad-advanced-queries). -One of the following permissions is required to run this cmdlet; - -|Permission type| Recommended Permissions| Other Permissions| -|-----|------|------| -|Delegated (work or school account)|User.ReadBasic.All, User.Read.All| User.ReadWrite.All, Directory.Read.All| -|Application|User.Read.All|User.ReadWrite.All, Directory.Read.All| +To learn about other permissions for this resource, see the [permissions reference](/graph/permissions-reference). To consent to any of these permissions run `Connect-MgGraph -Scopes Permission`. For example, `Connect-MgGraph -Scopes User.ReadBasic.All, User.Read.All`. @@ -91,12 +76,7 @@ Id DisplayName Mail This example returns the top 1 users with the display name starting with 'a'. The $userCount variable contains the count of the objects in the result. Advanced query requires the ConsistencyLevel parameter set to `eventual` and the Count parameter in the command. For more information about *ConsistencyLevel* and *Count*, see [Advanced query capabilities on Azure AD directory objects](/graph/aad-advanced-queries). -One of the following permissions is required to run this cmdlet; - -|Permission type| Recommended Permissions| Other Permissions| -|-----|------|------| -|Delegated (work or school account)|User.ReadBasic.All, User.Read.All| User.ReadWrite.All, Directory.Read.All| -|Application|User.Read.All|User.ReadWrite.All, Directory.Read.All| +To learn about other permissions for this resource, see the [permissions reference](/graph/permissions-reference). To consent to any of these permissions run `Connect-MgGraph -Scopes Permission`. For example, `Connect-MgGraph -Scopes User.ReadBasic.All, User.Read.All`. @@ -117,12 +97,7 @@ a7afe08d-55b9-4c44-be94-05d17c6513f3 Conf Room Rainier Rainier@Contoso.com Raini This example returns all users whose display name contains 'Conf'. The $userCount variable contains the count of the objects in the result. Advanced query requires the ConsistencyLevel parameter set to `eventual` and the Count parameter in the command. For more information about *ConsistencyLevel* and *Count*, see [Advanced query capabilities on Azure AD directory objects](/graph/aad-advanced-queries). -One of the following permissions is required to run this cmdlet; - -|Permission type| Recommended Permissions| Other Permissions| -|-----|------|------| -|Delegated (work or school account)|User.ReadBasic.All, User.Read.All| User.ReadWrite.All, Directory.Read.All| -|Application|User.Read.All|User.ReadWrite.All, Directory.Read.All| +To learn about other permissions for this resource, see the [permissions reference](/graph/permissions-reference). To consent to any of these permissions run `Connect-MgGraph -Scopes Permission`. For example, `Connect-MgGraph -Scopes User.ReadBasic.All, User.Read.All`. @@ -143,11 +118,6 @@ a7afe08d-55b9-4c44-be94-05d17c6513f3 Conf Room Rainier Rainier@Contoso.com Raini This example filters all users whose display name starts with 'Conf' and orders the results by the user principal name. The $userCount variable contains the count of the objects in the result. Advanced query requires the ConsistencyLevel parameter set to `eventual` and the Count parameter in the command. For more information about *ConsistencyLevel* and *Count*, see [Advanced query capabilities on Azure AD directory objects](/graph/aad-advanced-queries). -One of the following permissions is required to run this cmdlet; - -|Permission type| Recommended Permissions| Other Permissions| -|-----|------|------| -|Delegated (work or school account)|User.ReadBasic.All, User.Read.All| User.ReadWrite.All, Directory.Read.All| -|Application|User.Read.All|User.ReadWrite.All, Directory.Read.All| +To learn about other permissions for this resource, see the [permissions reference](/graph/permissions-reference). To consent to any of these permissions run `Connect-MgGraph -Scopes Permission`. For example, `Connect-MgGraph -Scopes User.ReadBasic.All, User.Read.All`.