SharePoint Online – enable or disable "Share" options based on permission

Bechir 41 Reputation points
2021-02-15T16:34:27.613+00:00

Hi Microsoft SharePoint Online Community

I have a requirement to enable or disable the "Share" option for document library based on SharePoint permissions

I found a way out of the box to control it by adjusting "Access Requests Settings" and "Permission levels"

1) Under "Access Requests Settings" the option "Allow members to share the site and individual files and folders" must be checked
2) Create a copy of the "Contribute" permission level and uncheck "User Self -Service Site Creation"

And I would like to ask you "Microsoft SharePoint Online Community", if I can use this solution in Production?

https://365basics.com/sharepoint-enable-or-disable-share-option-per-each-library-within-a-site/

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,300 questions
0 comments No comments
{count} votes

Accepted answer
  1. Li Zhang_MSFT 1,566 Reputation points
    2021-02-16T09:38:32.397+00:00

    Hi @Bechir ,

    Per my test, result is the same as the article you provided, and we could use this solution in Production.

    -------------------------------------------------------------------------------------------------------------------------------------------

    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful