I'm looking for a solution to access the following setting with PowerShell, PnP PowerShell or Graph API. I can't find any option to do that. I found the option to disable it, but not to restrict it.

With DisableSharingForNonOwners it also breaks the file sharing option.

enter image description here


1 Answer 1


unfortunally it doesn't work, it set the setting to "Only site owners can share files,folders and the site."

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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