You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: "Learn how to use the Find-MgGraphCommand to aid in discoverability of cmdlets."
4
4
5
5
ms.topic: how-to
6
-
ms.date: 01/15/2024
6
+
ms.date: 01/22/2025
7
7
author: msewaweru
8
8
manager: CelesteDG
9
9
ms.author: eunicewaweru
@@ -14,17 +14,17 @@ reviewer: maisarissi
14
14
15
15
# Using Find-MgGraphCommand cmdlet
16
16
17
-
Find-MgGraphCommand aims to make it easier for you to discover which API path a command calls, by providing a URI or a command name.
17
+
`Find-MgGraphCommand` aims to make it easier for you to discover which API path a command calls, by providing a URI or a command name.
18
18
19
-
The Find-MgGraphCommandallows to:
19
+
The `Find-MgGraphCommand` cmdlet allows you to:
20
20
21
21
- Pass a Microsoft Graph URL (relative and absolute) and get an equivalent Microsoft Graph PowerShell command.
22
22
- Pass a command and get the URL it calls.
23
23
- Pass a command or URI wildcard (.*) to find all commands that match it.
24
24
25
25
The output of this cmdlet also includes the permissions required to authenticate the specified cmdlet. For more information on cmdlet permissions, see [Using Find-MgGraphPermission](find-mg-graph-permission.md). Not all cmdlets have the permissions available on running this command. This is an ongoing feature, and permissions will continue to be added.
26
26
27
-
The permissions displayed don't show the privilege levels. To learn more, including how to choose permissions, permission type and what is the most privileged/least privileged permission, use the corresponding API page doc.
27
+
The permissions displayed don't show the privilege levels. To learn more, including how to choose permissions, permission type, and what is the most privileged/least privileged permission, use the corresponding API page doc.
28
28
29
29
## Find Microsoft Graph PowerShell commands by URI
>1. For **-ApiVersion** parameter, there are two possible values: `v1.0` and `Beta`.
66
-
>1. The **-Method** parameter is only available when using URI to find commands and allows the HTTPs methods such as GET, POST, PUT, PATCH and DELETE.
65
+
>1. For **-ApiVersion** parameter, there are two possible values: `v1.0` and `beta`.
66
+
>1. The **-Method** parameter is only available when using URI to find commands and allows the HTTPs methods such as GET, POST, PUT, PATCH, and DELETE.
67
67
>1. The output shown in this article has been shortened for readability.
68
68
69
69
## Find Microsoft Graph PowerShell commands by command name
@@ -172,3 +172,7 @@ Get-MgUserActivity CrossDeviceExperiences GET /users
172
172
Get-MgUserActivity CrossDeviceExperiences GET /users/{user-id}/activities
173
173
Get-MgUserActivityHistoryItem CrossDeviceExperiences GET /users/{user-id}/activities/{userActivity-id}/historyItems/{activityHistoryItem-id}
description: "Learn how to use the Find-MgGraphPermission to discover permissions related to a ___domain."
4
4
5
5
ms.topic: how-to
6
-
ms.date: 01/31/2024
6
+
ms.date: 01/22/2025
7
7
author: msewaweru
8
8
manager: CelesteDG
9
9
ms.author: eunicewaweru
@@ -14,12 +14,13 @@ reviewer: maisarissi
14
14
15
15
# Using Find-MgGraphPermission cmdlet
16
16
17
-
The Microsoft Graph PowerShell SDK application requires users to have ___domain knowledge of both the semantics and syntax of Microsoft Graph API permissions used to authorize access to the API. This cmdlet helps to answer the following questions:
17
+
The Microsoft Graph PowerShell SDK application requires users to have ___domain knowledge of both the semantics and syntax of Microsoft Graph API permissions used to authorize access to the API. The `Find-MgGraphPermission` cmdlet helps to answer the following questions:
18
18
19
-
- How do I find the values to supply to the permission-related parameters of commands like New-MgApplication and other application and consent related commands?
20
-
- What permissions are applicable to a certain ___domain, for example, application, directory? To use Microsoft Graph PowerShell SDK to access Microsoft Graph, users must sign in to a Microsoft Entra application using the `Connect-MgGraph` command. Use the [Find-MgGraphCommand](find-mg-graph-command.md) to find which permissions to use for a specific cmdlet or API.
19
+
- How do I find the values to supply to the permission-related parameters of commands like `New-MgApplication` and other application and consent related commands?
20
+
- What permissions are applicable to a certain ___domain? For example, application.
21
+
To use Microsoft Graph PowerShell to access Microsoft Graph, users must sign in to a Microsoft Entra application using the `Connect-MgGraph` command. Use the [Find-MgGraphCommand](find-mg-graph-command.md) to find which permissions to use for a specific cmdlet or API.
21
22
22
-
Currently, PowerShell commands and scripts have no way of validating user input that refers to permissions or providing an ‘auto-complete’ user experience to help users accurately supply input to commands. This also affects commands or scripts implemented with the Microsoft Graph PowerShell SDK itself.
23
+
Currently, PowerShell commands and scripts have no way of validating user input that refers to permissions or providing an *auto-complete* user experience to help users accurately supply input to commands. This also affects commands or scripts implemented with the Microsoft Graph PowerShell SDK itself.
23
24
24
25
## Find permissions related to a given ___domain
25
26
@@ -72,3 +73,7 @@ Consent : Admin
72
73
Name : Application.Read.All
73
74
Description : Allows the app to read all applications and service principals without a signed-in user.
0 commit comments