- Register your Application:
- Go to the Azure Portal.
- Navigate to Azure Active Directory -> App registrations -> New registration.
- Fill in the necessary details and note down the Application (client) ID and Directory (tenant) ID.
- Grant API Permissions:
- In the same App registration page, go to API permissions.
- Add the necessary permissions for Intune, such as
DeviceManagementApps.ReadWrite.All
andDeviceManagementApps.Read.All
. - Make sure to grant admin consent.
- Acquire an Access Token:
- You need to obtain an access token to make requests to the Microsoft Graph API. You can do this using the client credentials flow or another suitable authentication method.
- Make a POST request to the token endpoint (
https://login.microsoftonline.com/{tenant_id}/oauth2/v2.0/token
) with your client credentials to obtain an access token.
- Query Intune Apps Installation Status:
- Use the acquired access token to make a request to the Microsoft Graph API endpoint for Intune apps installation status.
- The endpoint for getting app installation status is:
{mobileAppId}
with the ID of the Intune app and{userPrincipalName}
with the user's principal name. @Vishwjeet Tanwar
Get user install status for Intune apps using graph API
Vishwjeet Tanwar
16
Reputation points
Hi, can anyone help with script to get user install status for Intune apps using graph API?
There is a script on Github for device install status: https://github.com/microsoftgraph/powershell-intune-samples/blob/master/Applications/Application_InstallStats.ps1
have someone created such script to get user install status for an app? Got this reference on MS site but not really sure how to use that in a script like above.
Thanks,
VIshwjeet
1 answer
Sort by: Most helpful
-
Shashank Kumar Srivastava 0 Reputation points Student Ambassador
2024-01-17T11:07:15.5166667+00:00