question

09508315 avatar image
0 Votes"
09508315 asked 09508315 commented

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


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?

office-sharepoint-onlineoffice-sharepoint-server-administrationsharepoint-devoffice-sharepoint-server-developmentsharepoint-workflow
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

MichaelHan-MSFT avatar image
0 Votes"
MichaelHan-MSFT answered 09508315 commented

Hi @09508315,

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.



· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks Mr.MichelHan

It was exactly what you said.

0 Votes 0 ·