disable “sharewith” from the Ribbon and share option in sharepoint 2019
-
20-02-2021 - |
Вопрос
I need to disable Shared With
option from the ribbon and the sharing of an item for all users:
I used these two PowerShell commands but that doesn't work:
Disable-SPFeature -Identity "FollowingContent" -URL $web
and
$web.RequestAccessEmail = ""
I checked the $web.RequestAccessEnabled = false
Any idea?
Решение
Disabling Access Request Settings
would help you to
- Disallow members to share and invite others to this site,
- Disallow access requests to unauthorized members.
- Limit some SharePoint sharing functionality for specific members.
But, it's not considered a solution to hide or disable the “Shared With” or the “Share” Menu Item for all users
. Instead, you should use CSS!
- For the list, Please check How to Disable the
"Shared With"
and"Share"
button in SharePoint?- For the Document Library, Please check How to disable Share in SharePoint Document Library?
Другие советы
Try to use css to prohibit these two buttons from being clickable:
<style>
#Ribbon.Library.Settings.LibraryPermissions-Large,#ID_Share{
pointer-events: none;
}
</style>
Не связан с sharepoint.stackexchange