Share via

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://

Microsoft 365 and Office | SharePoint | Development

1 answer

Sort by: Most helpful
  1. Akhil Nasalwai - MSFT 1,690 Reputation points Microsoft External Staff
    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.

    Was this answer helpful?

    0 comments No comments

Your answer

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