Is there any way to get permissions I have on a microsoft sharepoint site, without being admin of an organization?

Pratyaksh Sinha 20 Reputation points
2023-09-01T04:50:27.7366667+00:00

I want to get the permission of a site I have access to, I have the site id. I looked into https://learn.microsoft.com/en-us/graph/api/site-list-permissions?view=graph-rest-1.0&tabs=http#permissions but this api requires me to have admin privileges to get the sites permission. Is there any other way to do it without admin priveleges?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,000 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,680 questions
0 comments No comments
{count} votes

Accepted answer
  1. RaytheonXie_MSFT 35,391 Reputation points Microsoft Vendor
    2023-09-01T06:53:20.9966667+00:00

    Hi @Pratyaksh Sinha,

    Per my test, full control of the site is necessary to retrieve the permission of a site. I have tested user with approval and design permission level to get the list of permission by powershell. And they all return Attempted to perform an unauthorized operation.

    User's image

    We will need a full control permission to get RoleAssignments properties under web.


    If the answer is helpful, please click "Accept 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 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.