Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 6 additions & 36 deletions src/Users/Users/examples/v1.0-beta/Get-MgUser.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.

Expand 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`.

Expand 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`.

Expand 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`.

Expand 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`.

Expand 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`.