Graph API permissions required to use onPremisesPublishing?

NDNMD 21 Reputation points
2021-03-03T12:23:09.657+00:00

Hi ,

I am following documentation to create App Proxy applications via the Graph API.
https://learn.microsoft.com/en-us/graph/application-proxy-configure-api?tabs=http#step-2-configure-application-proxy-properties

I am receiving 403 unauthorized when performing PATCH against onPremisesPublishing object.

{
"error": {
"code": "NotAdminRoleNoEnoughCustomPermission_UnauthorizedAccess",
"message": "Unauthorized Access.",
"innerError": {
"date": "2021-03-03T12:13:42",
"request-id": "",
"client-request-id": ""
}
}
}

I have delegated permissions set for:
Directory.ReadWrite.All
Applications.ReadWrite.All
OnPremisesPublishingProfiles.ReadWrite.All

Which other permissions would this API require?
Thanks!

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,664 questions
0 comments No comments
{count} votes

Accepted answer
  1. Dan Kershaw 416 Reputation points Microsoft Employee
    2021-03-05T18:52:10.21+00:00

    @NDNMD I suspect that the signed-in user needs to be in either Cloud Application Administrator or the Application Administrator role. With delegated permissions the service looks at both the permissions granted to the app AND the permissions that the signed-in user has. and decides whether the combo means that the user+app have access to the API operation.
    See https://learn.microsoft.com/en-us/graph/auth/auth-concepts#delegated-and-application-permissions for more info on delegated permissions.

    Hope this helps
    Dan

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful