Sharepoint List Creation via Graph

Jericho Viejo 60 Reputation points
2023-04-14T02:21:00.71+00:00

Good day, What is the difference between the "Microsoft Graph -> Sites.ReadWriteAll" permission and the "Sharepoint -> Sites.ReadWriteAll" permission. We're trying to create a new Sharepoint list using the graph API, and the response says "Access denied" Does granting the permission automatically allow it to create lists, or are there other settings that the administrator needs to allow?

Microsoft 365 and Office SharePoint For business Windows
Microsoft Security Microsoft Entra Microsoft Entra ID
Microsoft Security Microsoft Graph
0 comments No comments
{count} votes

Accepted answer
  1. Anonymous
    2023-04-14T03:01:41.02+00:00

    Hello Jericho Viejo,

    Thanks for reaching out!

    The "Microsoft Graph -> Sites.ReadWriteAll" permission is a Microsoft Graph API permission that grants read and write access to all SharePoint sites. It allows you to create, read, update, and delete lists, among other operations, on all SharePoint sites in a tenant using the Microsoft Graph API.

    The "SharePoint -> Sites.ReadWriteAll" permission is a SharePoint REST API permission that grants read and write access to all SharePoint sites. It allows you to create, read, update, and delete lists, among other operations, on all SharePoint sites in a tenant using the SharePoint REST API.

    To create a SharePoint List using MS Graph API, you need to consent Sites.Manage.All permissions as per the documentation.
    Hope this helps.

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have 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.