Graph API to create androidManagedStoreAppConfiguration giving 403

Rahul Nagar (External) 1 Reputation point
2021-06-01T07:51:10.687+00:00

The Microsoft graph API for androidManagedStoreAppConfiguration always giving 403 Forbidden error, while permissions required to call this API as background application already given to app.
The API is working when we authenticate with user credentials but always giving 403 when calling as application-level with admin consent.

Please find the details as:
Request: https://graph.microsoft.com/beta/deviceAppManagement/mobileAppConfigurations
Body:
{
"profileApplicability": "default",
"roleScopeTagIds": [],
"packageId": "Package Id value",
"payloadJson": "Payload Json value",
"permissionActions": [],
"description": "Description value",
"displayName": "Display Name value",
"targetedMobileApps": [
"78275341-6d68-4f17-8755-d05f7c4bdf9a"
],
"@odata.type": "#microsoft.graph.androidManagedStoreAppConfiguration"
}

Request Type: POST
Authentication Type: Consented by Administrator
Authentication Scope: .default
Permissions: DeviceManagementApps.ReadWrite.All

Call Reference: https://video2.skills-academy.com/en-us/graph/api/intune-apps-androidmanagedstoreappconfiguration-create?view=graph-rest-beta

Even after providing all application-level permission just to check if some permission causing issue, it's still giving 403-Forbidden.

Please advise if anyone has some leads.

Microsoft Intune Configuration
Microsoft Intune Configuration
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Configuration: The process of arranging or setting up computer systems, hardware, or software.
1,781 questions
Microsoft Intune Application management
Microsoft Intune Application management
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Application management: The process of creating, configuring, managing, and monitoring applications.
908 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
4,645 questions
{count} votes