DocumentSet impossible to delete default content

Magali GERARD 26 Reputation points
2021-10-04T22:05:17.41+00:00

Hi,
I'm using SharePoint Online in MS365 and I created a document set with default documents.
137543-docsetdefaultcontent.png

The document templates having evolved I want to delete the previous template but impossible, I am told that I do not have access.
137571-accesserror.png

I don't understand because I'm a collection admin and a Sharepoint admin.
Thank you in advance for your precious help

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

Accepted answer
  1. JoyZ 18,056 Reputation points
    2021-10-05T06:43:54.52+00:00

    @Magali GERARD ,

    Per my test, Document Set Contents and Document Set Properties are unavailable to site admins and owners when you prevent them from running custom script.

    137599-image.png

    To enable custom script in one sharepoint site, refer to below PowerShell:

    #Config Parameters  
    $AdminSiteURL="https://crescent-admin.sharepoint.com"  
    $SiteURL="https://crescent.sharepoint.com/sites/Team1"  
         
    #Get Credentials to connect  
    $Cred = Get-Credential  
         
    #Connect to SharePoint Online Tenant Admin  
    Connect-SPOService -URL $AdminSiteURL -Credential $Cred  
         
    #sharepoint online enable custom scripts powershell - Disable DenyAddAndCustomizePages Flag  
    Set-SPOSite $SiteURL -DenyAddAndCustomizePages $False  
    

    More information about allowing or preventing custom script for your reference:

    https://learn.microsoft.com/en-us/sharepoint/allow-or-prevent-custom-script


    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

1 additional answer

Sort by: Most helpful
  1. Magali GERARD 26 Reputation points
    2021-10-05T07:24:38.267+00:00

    Thanks for your quick answer @JulieWang-MSFT but i don't understand anything in PowerShell.
    I hope MS will give us controls in classic admin in order to resolve this problem... I accept the answer but i'll not test it because i'm not sure of me. Thanks @JulieWang-MSFT

    0 comments No comments