0

I have a dev Sharepoint site with unique permissions (and fake users seen below). In the SharePoint manage access blade, the permissions appear as such:

enter image description here

However, when I click through to the Advanced Permissions link just below that, the permissions look as such:

enter image description here

MaksSite Owners is missing in the 2nd listing, though it appears in the first listing. This group appears to be the default Owners group that came with the SharePoint site. It is also missing when queried through the SharePoint REST API (via /sites/MaksSite/_api/web/GetFileByServerRelativeUrl('/sites/MaksSite/path/to/file')/ListItemAllFields/RoleAssignments?$expand=member). Which listing is right, and if it is the first listing, how do I get it to appear, at least with the API?

Maksim Grinman
  • 199
  • 1
  • 13

1 Answers1

0

By default, the Site Owners group is hidden in the list. To make it appear, please take the following steps:

  • Click List Settings under Settings.

enter image description here

  • Scroll down to Views, click Detail View. enter image description here
  • In Filter section, choose show all items in this view. Then save the view.

enter image description here

The Site Onwers group will appear in the list:

enter image description here

You could try to use the below Rest API:

/_api/web/GetFileByServerRelativeUrl('/sites/michael/Shared%20Documents/Document.docx')/ListItemAllFields/RoleAssignments/groups?$expand=users
Michael Han
  • 3,475
  • 1
  • 6
  • 8
  • Thanks for the suggestion. This did not work for me (the group is still not showing up for the item in question). I also doubt it would help as a Sharepoint REST API user. The owner group is not showing up there either. Is there, perhaps, an implied rule that the owners group has access to all items, and therefore is omitted? – Maksim Grinman Mar 17 '21 at 16:00
  • Per my test, the Ownwes group would be shown through Rest API, this is the endpoint I use: /_api/Web/SiteGroups/getbyname('michael Owners')/users – Michael Han Mar 19 '21 at 09:06
  • For a file, try to use this: /_api/web/GetFileByServerRelativeUrl('/sites/michael/Shared%20Documents/Document.docx')/ListItemAllFields/RoleAssignments/groups?$expand=users – Michael Han Mar 19 '21 at 09:11