Jul 14 2017 05:39 AM
Any possibility to disable sharing for non owners without disabling access request for SharePoint Online sites?
"Turn off sharing for non-owners on all sites in this site collection" in SharePoint admin center or DisableSharingForNonOwners switch for Set-SPOSite command, will turn off "Allow access request" as well. It's more useful to have approval process and let owner approve/reject if anyone share document/site instead of turning it off comepletely.
Feb 17 2021 05:48 AM
Hi Microsoft,
Do you have an answer for this issue?
May 10 2023 02:50 AM
Hi @Kambiz Niktabar,
Quite late to the party, but maybe still relevant for others.
I just encountered the same situation.
You can resolve this also by using Power Automate and sending an HTTP request to the SharePoint REST API.
To determine the ID of the SharePoint group '... Members', you can execute the following HTTP request where request body should be empty:
GET https://x.sharepoint.com/sites/x/_api/web/sitegroups
The response will be all SharePoint groups that exist within the site. You can also filter down results using the filter parameter: https://learn.microsoft.com/en-us/sharepoint/dev/sp-add-ins/use-odata-query-operations-in-sharepoint...
For example: https://x.sharepoint.com/sites/x/_api/web/sitegroups?$filter=Title 'eq 'Team Site Members'
Hope this helps.
Joost