Is it possible to retrieve sharepoint site permissions using the Microsoft Graph API or any other approach in an ASP.NET Core Web API?

Manishankar T S 60 Reputation points
2024-12-05T09:20:23.3833333+00:00

I tried to retrieve the SharePoint site permissions using the Microsoft Graph API, PnP method, and CSOM method in an ASP.NET Core 6 Web API, but it didn't succeed.

Microsoft 365 and Office | SharePoint | Development
Microsoft Security | Microsoft Graph
{count} votes

Accepted answer
  1. Yanli Jiang - MSFT 31,606 Reputation points Microsoft External Staff
    2024-12-06T06:31:30.1966667+00:00

    Hi @Manishankar T S ,

    If you are trying to get Site Collection Permissions Report, there is no graph api for that, you can get it through PowerShell. If that's not your intention, forgive me for misunderstanding.

    If you are prompted to register your application, please refer to:

    https://www.sharepointdiary.com/2021/02/how-to-install-pnp-powershell-module-for-sharepoint-online.html#step-3-register-a-new-azure-ad-application-and-grant-access-to-the-tenant

    Good day!


    If the answer is helpful, please click "Accept as Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    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.