Microsoft Graph API: Issue with granting permissions to Azure application in SharePoint, operation not supported

Marc ten Cate 21 Reputation points

I have an issue with granting permissions to an Azure application. I've done the steps before with other applications and tenants, but for some reason I get the message 'Operation not supported'.

I have the application permission 'Sites.FullControl.All' assigned to the application and have given the admin consent.

However, everytime I try to retrieve all the permissions of a SharePoint site I get a 400 with the message 'Operation not supported'

       "error": {  
           "code": "notSupported",  
           "message": "Operation not supported",  
           "innerError": {  
               "date": "2022-07-06T14:01:45",  
               "request-id": "xxxxxxx",  
               "client-request-id": "xxxxxxx"  
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,036 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,563 questions
{count} votes

Accepted answer
  1. ShivaniRai-MSFT 2,726 Reputation points

    Hi @Marc ten Cate ,

    According to this documentation, We can fetch permissions on a SharePoint site and not for a subsite. As this webUrl represents a sub-site within root site collection that is why you are getting operation not allowed error. I am also able to replicate this scenario.

    You can submit a feature request idea which will be monitored by Microsoft team and make the enhancements to Microsoft Graph APIs.

    Hope this helps.
    If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.

    0 comments No comments

0 additional answers

Sort by: Most helpful