Unable to Publish an MSI application to Intune

Occasional Visitor

While trying to publish to Intune, I am getting an following error message:
 ERROR: IntunePlugin.AsyncExecutor.RunSync - Status Code: Unauthorized Microsoft.Graph.ServiceException: Code: UnknownError Message: {"ErrorCode":"Forbidden","Message":"{\r\n \"_version\": 3,\r\n \"Message\": \"An error has occurred - Operation ID (for customer support):".

I have given the following permissions for the application.

Shashikiran1985_0-1602075613902.png

Please help me in resolving this issue.
Thanks.

3 Replies
Could you share the exact code you are trying to use?

Hey @Shashikiran1985,

 

the Intune App write permission write is a Delegated permission so you need to have a service account (an user) this user needs to have a valid Intune license assigned, otherwise he can't use Graph endpoints for Intune. Did you check if the service user has a license for Intune correctly assigned?

 

best,

Oliver

@Shashikiran1985  Status Code: Unauthorized--> Refers to the permission related issue.

How are you publishing the app? using script or manual method?

 

Regards,

Eswar