I would like to disable/hide delete link for couple of lists. I can easily do with SP scripts but not using PnP/CSOM. Last I looked AllowDelete is not available in the SharePoint.Client library.
Does anyone know a PnP workaround. Thanks
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It only takes a minute to sign up.
Sign up to join this communityI would like to disable/hide delete link for couple of lists. I can easily do with SP scripts but not using PnP/CSOM. Last I looked AllowDelete is not available in the SharePoint.Client library.
Does anyone know a PnP workaround. Thanks
Break the permissions and use a modified version of "Contribute" where delete has been removed as shown here https://docs.microsoft.com/en-us/powershell/module/sharepoint-pnp/add-pnproledefinition?view=sharepoint-PS Example 2