Modern Team Site - Record Declaration Settings

%3CLINGO-SUB%20id%3D%22lingo-sub-125001%22%20slang%3D%22en-US%22%3EModern%20Team%20Site%20-%20Record%20Declaration%20Settings%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-125001%22%20slang%3D%22en-US%22%3E%3CP%3ETrying%20to%20change%20the%20record%20declaration%20settings%20for%20a%20modern%20team%20site%20(%2F_layouts%2F15%2FInPlaceRecordsSettings.aspx)%20but%20getting%20the%20message%20%22Sorry%2C%20you%20don't%20have%20access%20to%20this%20page%22.%20I%20am%20a%20global%20administrator%20of%20the%20tenant.%20I%20also%20can%20update%20the%20record%20declaration%20settings%20for%20classic%20team%20site%20without%20any%20issues.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-125001%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-192715%22%20slang%3D%22en-US%22%3ERe%3A%20Modern%20Team%20Site%20-%20Record%20Declaration%20Settings%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-192715%22%20slang%3D%22en-US%22%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%3CFONT%20face%3D%22Calibri%2Csans-serif%22%20size%3D%222%22%3E%3CSPAN%3E%3CFONT%20face%3D%22Segoe%20UI%2Csans-serif%22%20color%3D%22black%22%3EOur%20team%20has%20solved%20the%20issue%3A%3C%2FFONT%3E%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%3CFONT%20face%3D%22Calibri%2Csans-serif%22%20size%3D%222%22%3E%3CSPAN%3E%3CFONT%20face%3D%22Segoe%20UI%2Csans-serif%22%20color%3D%22black%22%3ETurns%20out%2C%20the%20custom%20script%20is%20disabled%20in%20Office%20365%20Group%20Team%20Sites%20and%20OD4B%20by%20default%20for%20security%20reasons.%20%3C%2FFONT%3E%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%3CFONT%20face%3D%22Calibri%2Csans-serif%22%20size%3D%222%22%3E%3CSPAN%3E%3CFONT%20face%3D%22Segoe%20UI%2Csans-serif%22%20color%3D%22black%22%3EThere%20are%20some%20methods%20to%20enable%20the%20custom%20script%20to%20allow%20you%20change%20the%20record%20settings%3A%3C%2FFONT%3E%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FDIV%3E%3COL%3E%3CLI%3E%3CFONT%20face%3D%22Calibri%2Csans-serif%22%20size%3D%222%22%20color%3D%22black%22%3E%3CSPAN%3E%3CFONT%20face%3D%22Segoe%20UI%2Csans-serif%22%3EUse%20the%20CSOM%20API%20(require%20code%20to%20do%20this)%3C%2FFONT%3E%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FLI%3E%3CLI%3E%3CFONT%20face%3D%22Calibri%2Csans-serif%22%20size%3D%222%22%20color%3D%22black%22%3E%3CSPAN%3E%3CFONT%20face%3D%22Segoe%20UI%2Csans-serif%22%3EUse%20the%26nbsp%3B%3C%2FFONT%3E%3CA%20href%3D%22https%3A%2F%2Fgo.microsoft.com%2Ffwlink%2F%3Flinkid%3D869066%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3CFONT%20face%3D%22Segoe%20UI%2Csans-serif%22%3ESharePoint%20Online%20Management%20Shell%3C%2FFONT%3E%3C%2FA%3E%3CFONT%20face%3D%22Segoe%20UI%2Csans-serif%22%3E%26nbsp%3Bto%20change%20it%3A%20Set-SPOSite%20%3CSITEURL%3E%20-%20DenyAddAndCustomizePages%201%3C%2FSITEURL%3E%3C%2FFONT%3E%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FLI%3E%3CLI%3E%3CFONT%20face%3D%22Calibri%2Csans-serif%22%20size%3D%222%22%20color%3D%22black%22%3E%3CSPAN%3E%3CFONT%20face%3D%22Segoe%20UI%2Csans-serif%22%3EUse%20the%26nbsp%3B%3C%2FFONT%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fsharepoint-pnp%2Fset-pnptenantsite%3Fview%3Dsharepoint-ps%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3CFONT%20face%3D%22Segoe%20UI%2Csans-serif%22%3EPNP%20PowerShell%3C%2FFONT%3E%3C%2FA%3E%3CFONT%20face%3D%22Segoe%20UI%2Csans-serif%22%3E%26nbsp%3Bto%20change%20it%3A%20Set-PnpTenantSite%20-Url%20%3CSITEURL%3E%20-NoScriptSite%20%24false%3C%2FSITEURL%3E%3C%2FFONT%3E%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FLI%3E%3C%2FOL%3E%3CDIV%3E%3CFONT%20face%3D%22Calibri%2Csans-serif%22%20size%3D%222%22%3E%3CSPAN%3E%3CFONT%20face%3D%22Segoe%20UI%2Csans-serif%22%20color%3D%22black%22%3E%26nbsp%3B%3C%2FFONT%3E%3C%2FSPAN%3E%3C%2FFONT%3E%3CFONT%20face%3D%22Calibri%2Csans-serif%22%20size%3D%222%22%3E%3CSPAN%3E%3CFONT%20face%3D%22Segoe%20UI%2Csans-serif%22%20color%3D%22black%22%3EFor%20more%26nbsp%3Binformation%20about%20the%20custom%20script%20please%20refer%20to%26nbsp%3B%3C%2FFONT%3E%3CA%20href%3D%22https%3A%2F%2Fsupport.office.com%2Fen-us%2Farticle%2Fallow-or-prevent-custom-script-1f2c515f-5d7e-448a-9fd7-835da935584f%3Fui%3Den-US%26amp%3Brs%3Den-US%26amp%3Bad%3DUS%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3CFONT%20face%3D%22Segoe%20UI%2Csans-serif%22%3Ehttps%3A%2F%2Fsupport.office.com%2Fen-us%2Farticle%2Fallow-or-prevent-custom-script-1f2c515f-5d7e-448a-9fd7-835da935584f%3Fui%3Den-US%26amp%3Brs%3Den-US%26amp%3Bad%3DUS%3C%2FFONT%3E%3C%2FA%3E%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%3CFONT%20face%3D%22Calibri%2Csans-serif%22%20size%3D%222%22%3E%3CSPAN%3E%3CFONT%20face%3D%22Segoe%20UI%2Csans-serif%22%20color%3D%22black%22%3E%26nbsp%3B%3C%2FFONT%3E%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-191964%22%20slang%3D%22en-US%22%3ERe%3A%20Modern%20Team%20Site%20-%20Record%20Declaration%20Settings%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-191964%22%20slang%3D%22en-US%22%3E%3CP%3EThere%20is%20a%20support%20article%20that%20says%20that%20you%20can%20do%20this%2C%20this%20absolutely%20is%20a%20bug%20and%20definitely%20needs%20to%20be%20addressed.%3CA%20href%3D%22http%3A%2F%2F%5B%E2%80%8E5%2F%E2%80%8E9%2F%E2%80%8E2018%2011%3A37%20AM%5D%20https%3A%2F%2Fsupport.office.com%2Fen-us%2Farticle%2Fconfiguring-in-place-records-management-7707a878-780c-4be6-9cb0-9718ecde050a%20LOL%20Support%20article%20is%20like%20%26quot%3BYeah%20its%20fine%26quot%3B%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%20Article%20available%20here%3C%2FA%3E.%20This%20has%20been%20causing%20my%20team%20a%20great%20deal%20of%20work%20over%20the%20past%20week-%20so%20the%20typical%20default%20is%20that%20the%20%22Block%20Edit%20and%20Delete%22%20is%20ON%2C%20but%20in%20some%20cases%20this%20is%20not%20true%20but%20you%20cannot%20change%20it.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-182631%22%20slang%3D%22en-US%22%3ERe%3A%20Modern%20Team%20Site%20-%20Record%20Declaration%20Settings%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-182631%22%20slang%3D%22en-US%22%3E%3CP%3EWe%20also%20would%20like%20to%20be%20able%20to%20use%20our%20existing%20records%20centers%20with%20the%20modern%20UI.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-125233%22%20slang%3D%22en-US%22%3ERe%3A%20Modern%20Team%20Site%20-%20Record%20Declaration%20Settings%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-125233%22%20slang%3D%22en-US%22%3E%3CP%3EWe%20still%20should%20be%20able%20to%20update%20the%20site%20collection%20record%20declaration%20settings%20since%20modern%20sites%20support%20classic%20lists%20and%20libraries%20where%20record%20declaration%20is%20working%20as%20expected.%20I%20think%20it%20is%20a%20bug%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-125073%22%20slang%3D%22en-US%22%3ERe%3A%20Modern%20Team%20Site%20-%20Record%20Declaration%20Settings%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-125073%22%20slang%3D%22en-US%22%3E%3CP%3EI'm%20guessing%20it%20is%20not%20visible%20for%20a%20reason.%20Considering%20that%20in%20a%20modern%20library%20there%20is%20no%20declare%20as%20record%20button%2C%20and%20even%20if%20you%20do%20manage%20to%20declare%20an%20item%20as%20a%20record%20it%20has%20no%20padlock%20icon%2C%20in%20my%20mind%20Microsoft%20are%20giving%20us%20a%20steer%20to%20use%20labels%20for%20the%20classification%20of%20records.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-652589%22%20slang%3D%22en-US%22%3ERe%3A%20Modern%20Team%20Site%20-%20Record%20Declaration%20Settings%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-652589%22%20slang%3D%22en-US%22%3EJust%20to%20add%2C%20the%20SharePoint%20online%20PowerShell%20code%20to%20change%20the%20setting%20is%3A%3CBR%20%2F%3ESet-SPOSite%20-Identity%20YourSiteUrl%20-DenyAddAndCustomizePages%200%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

Trying to change the record declaration settings for a modern team site (/_layouts/15/InPlaceRecordsSettings.aspx) but getting the message "Sorry, you don't have access to this page". I am a global administrator of the tenant. I also can update the record declaration settings for classic team site without any issues.

6 Replies
Highlighted

I'm guessing it is not visible for a reason. Considering that in a modern library there is no declare as record button, and even if you do manage to declare an item as a record it has no padlock icon, in my mind Microsoft are giving us a steer to use labels for the classification of records.

Highlighted

We still should be able to update the site collection record declaration settings since modern sites support classic lists and libraries where record declaration is working as expected. I think it is a bug

Highlighted

We also would like to be able to use our existing records centers with the modern UI.

Highlighted

There is a support article that says that you can do this, this absolutely is a bug and definitely needs to be addressed. Article available here. This has been causing my team a great deal of work over the past week- so the typical default is that the "Block Edit and Delete" is ON, but in some cases this is not true but you cannot change it. 

Highlighted
 
Our team has solved the issue:
Turns out, the custom script is disabled in Office 365 Group Team Sites and OD4B by default for security reasons.
There are some methods to enable the custom script to allow you change the record settings:
  1. Use the CSOM API (require code to do this)
  2. Use the SharePoint Online Management Shell to change it: Set-SPOSite <SiteURL> - DenyAddAndCustomizePages 1
  3. Use the PNP PowerShell to change it: Set-PnpTenantSite -Url <SiteUrl> -NoScriptSite $false
 
 
Highlighted
Just to add, the SharePoint online PowerShell code to change the setting is:
Set-SPOSite -Identity YourSiteUrl -DenyAddAndCustomizePages 0