I want to know the authority to acquire the folder authority of Sharepoint

大坂 翔 141 Reputation points
2021-10-18T02:15:31.21+00:00

I tried to get a list of permissions for a folder on a particular SharePoint site, but an error occurred.
Here is the URL you accessed and the response.

【URL】

/_api/web/GetFolderByServerRelativeUrl('${folder_url}')?$expand=ListItemAllFields/RoleAssignments/Member

【ERROR content】

Access denied. You do not have permission to perform this action or access this resource.

The user who tried to access is the owner of the site

However, as soon as the Global admin set it as the site owner, it became available.

Is there a hidden Role?

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,617 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.
2,668 questions
SharePoint Server Development
SharePoint Server Development
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Development: The process of researching, productizing, and refining new or existing technologies.
1,573 questions
SharePoint Server Management
SharePoint Server Management
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Management: The act or process of organizing, handling, directing or controlling something.
2,798 questions
0 comments No comments
{count} votes

Accepted answer
  1. MichaelHan-MSFT 18,016 Reputation points
    2021-10-18T07:41:04.62+00:00

    Hi @大坂 翔 ,

    Per my test, you need to have site collection admin permission to get the roleassignments .

    At the beginning, you are just site owner. Your global admin set you as site collection admin, then it worked.


    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