1

My site is in Office 365. I've one document library, from which I want to get item level permission of particular item. To do this, I have made rest call on particular items of document which is as follow:

https://xxx/yyy/_api/web/GetFileByServerRelativeUrl('/sites/xxx/yyy/Documents/fb.png')?$expand=ListItemAllFields/RoleAssignments/Member,ListItemAllFields/RoleAssignments/RoleDefinitionBindings,ListItemAllFields/RoleAssignments/Member/Users

Now when I'm opening the item level permission from list (OOB), it shows me all the permissions of particular item but using rest call I'm getting following error:

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

My user has Full control permission on list. The rest call returns me only result if I add user name in Site Collection Admin.

0

After westing 5-6 hours, finally I got the answer. The issue was my all the groups has not "Everyone" permission that's why rest call is not allow to get information from groups and giving error of access denied.

In group settings set "Everyone" for Who can view the membership of the group?.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.