Azure App Configuration
An Azure service that provides hosted, universal storage for Azure app configurations.
214 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi All,
I am facing an issue with API permissions. I have an Azure App Registration with the following Microsoft Graph API permissions. Let's say the App Registration name is TESTAPP and the Client ID is xxxx-xxxx-xxxxx-xxxxx.
I have a SharePoint site, let's say mysite1, and I am trying to provide permissions in the following way:
I obtained the site ID using the following URL:
https://mydomain.sharepoint.com/sites/mysite1/_api/site/id. Let's say the site ID i got is
11111-111-1111-11221
i have logged into https://developer.microsoft.com/en-us/graph/graph-explorer/
Post-->v1.0-->https://grapsh.microsoft.com/v1.0/sites/{11111-111-1111-11221}/permissions
Request headers: Key:application/json
Request Body:
{
"roles": [
"write"
],
"grantedToIdentities": [
{
"application": {
"id": "xxxx-xxxx-xxxxx-xxxxx", # This is my app regisration id
"displayName": "TESTAPP"
}
}
]
}
When i click modify permissions and search for sites permissions, i am unable to provide consent, its grayed out. I am a global admin and i have full access on the SharePoint site. Please guide me.
It might be less complex todo if you use PNP Powershell to configure this.
Check out the "Granting permissions via PnP PowerShell" section of the following Learn page: https://learn.microsoft.com/en-us/sharepoint/dev/sp-add-ins-modernize/understanding-rsc-for-msgraph-and-sharepoint-online#granting-permissions-via-pnp-powershell