Unauthorized 403 for Sharepoint API call

Ayush Malik 1 Reputation point
2025-01-30T17:44:03.1066667+00:00

Our product makes the following API call:

`https://

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,259 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Akhil Nasalwai - MSFT 180 Reputation points Microsoft Vendor
    2025-01-30T19:21:52.9233333+00:00

    Hello Ayush Malik,

    Thank you for reaching out to Microsoft!

    To restrict the permission set to some sites, please find the below work around which might help resolve the issue.

    You can restrict the permissions to specific sites using Sites.Selected permission instead of AllSites.Fullcontrol.

    Please find the below useful reference guides for the same:

    Link: Using Sites.Selected permission

    Link: Controlling app access on specific SharePoint site collection

    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

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.