OneDrive and SharePoint Authorization Issue

Mageshwari SS 20 Reputation points
2025-01-21T06:52:50.69+00:00

Hi Support Team,

Tried logging into our MS Entra ID as a global admin, then find the calling app and grant admin consent for the Files.ReadWrite.All,offline_access permissions.

I have successfully setup OAuth in my Application and Authorization is working fine for OneDrive accounts. However, I need clarification on whether this setup will also work for SharePoint accounts?

I'm experiencing a critical issue that's impacting our customer. I urgently need your assistance to resolve this matter. Please help me as soon as possible.

Thanks and Regards,

Mageshwari.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,854 questions
OneDrive
OneDrive
A Microsoft file hosting and synchronization service.
1,275 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
11,109 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,218 questions
OneDrive Management
OneDrive Management
OneDrive: A Microsoft file hosting and synchronization service.Management: The act or process of organizing, handling, directing or controlling something.
1,329 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Rajat Vashistha-MSFT 265 Reputation points Microsoft Vendor
    2025-01-21T08:57:12.5433333+00:00

    Hi Mageshwari SS,

    Thank you for contacting Microsoft!

    Both OneDrive and SharePoint use the same underlying Microsoft Graph API for authorization and permissions management. As you have setup for OneDrive using OAuth 2.0 should also work for SharePoint account.

    Please review the document shared and the permission required for accessing the SharePoint as per the Graph API used: -

    https://learn.microsoft.com/en-us/graph/api/resources/sharepoint?view=graph-rest-1.0

    If you need to access the content of a site, you will need to assign the "Sites.Read.All" permission. Please ensure that the appropriate permissions are assigned based on the tasks you need to perform.

    User's image

    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.


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.