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

Marc ten Cate 31 Reputation points
2022-07-06T14:11:23.057+00:00

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.
13,005 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.
3,270 questions
{count} votes

Accepted answer
  1. ShivaniRai-MSFT-7217 2,741 Reputation points
    2022-07-06T16:06:03.493+00:00

    Hi @Marc ten Cate ,

    According to this documentation, We can fetch permissions on a SharePoint site and not for a subsite. As this webUrl https://TENANT.sharepoint.com/SITENAME 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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.