I would like to retrieve Sharepoint subsites authors & permissions (public or private, and if private : allowed groups/members), preferably using Graph API.
For Outlook Groups and Teams sites, I can use endpoints /groups/<groupID>
, /groups/<groupID>/owners
and /groups/<groupID>/members
to achieve that, but it seems that there is no equivalent for sites created through the following process:
- Load "root site" https://<yourdomain>.sharepoint.com
- Click on "Site contents" > "New" > "Subsite"
The only "interesting" Graph API endpoint I found yet, is /sites/root/sites/<siteID>/lists
, returning some site metadata (collections of data like "master pages", "designs"...), along with a createdBy
structure (containing a user.id
property) for each of those collections.
However, using it would look hacky, a "direct" property/structure author
or owners
would be preferable. Moreover, the /sites/.../lists
endpoint is only available in beta version of the API (has somebody any info on its release date ?), and still, that does not tells me which users are allowed to view the site.
Attempts with other APIs like this one did not provide any closer info to what I need.
Thanks for any piece of advice.