I am trying to get the ACL on a file via the rest api. I can get the contents of a file and make other rest calls but when I call:
https://foo.sharepoint.com/_api/Web/Lists(guid'...')/Items(...)/FirstUniqueAncestorSecurableObject?$expand=RoleAssignments
or just
https://foo.sharepoint.com/_api/Web/RoleAssignments
I get a 401 Unauthorized Entity
response.
I have created an appPrinciple in the site, and during the oAuth initiation I am requesting the AllSites.Manage
permission. Around a year ago this code worked - and I can't find anything that suggests that this is no longer allowed.
Can anyone shed any light?