Getting "access denied" while installing Collaboration Manager (CM) or saving CM settings

Getting "access denied" while installing Collaboration Manager (CM) or saving CM settings



Problem:

Collaboration Manager crashes during installation or storage process with the following error: 

"Access denied. You do not have permission to perform this action or access this resource."


Possible Reason:

Most probably this behavior is caused by the Custom Script Feature as described here. Basically the issue occurs when the Custom Script Feature is turned off.


Solution:

In order to solve this problem you have to allow users to run custom scripts on self-service created sites.

Follow the steps below to enable scripting from the SharePoint admin center:

1. Sign in to Office 365 with your work or school account.

2. Navigate to the SharePoint admin center.

 

3. Select Settings.

 

4. Under Custom Script choose:

 


 

5. Select OK. It takes up to 24 hours for the changes to take effect.


If you don't want to wait 24 hours for the changes to take effect you can run this Powershell:

______________________________________________________________________
$cred = Get-Credential
$siteCollectionUrl = "https://xxx.sharepoint.com"
Connect-SPOService -url $siteAdminUrl -Credential $cred
$rootsite = Get-SPOSite($siteCollectionUrl)
$rootsite.DenyAddAndCustomizePages 
Set-SPOSite -Identity $siteCollectionUrl -DenyAddAndCustomizePages $false
______________________________________________________________________

    • Related Articles

    • Templates cannot be created - Access denied

      Problem: You will create a Template and you get an error like "Solutions2Share.Solutions.CollaborationManager.Pages.CreateTemplate.btnOK_onClick: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))   ExceptionType: ...
    • Access denied while calling the workspace

      Problem: After you create the workspace, the page can only be accessed using the administrator account. All users who are entitled to the page about People Permission Fields or Group Permission Fields get an Access denied message when the page. ...
    • Error on saving using CM Picture Field

      Problem: After saving the logo or screenshots in a template or workspace there is an issue in the ULS log: The File with the URL "...." does not exist in this webpage Solution: Try to open the CM Picture Library with "URLofYourRootWeb/CMPictures" If ...
    • Error during template creation "The EXECUTE premission was denied"

      Error in Log Excpetion occured in CM Service application. Error System.ServiceModel.FaultException`1[System.ServiceModel.ExceptionDetail]: The EXECUTE permission was denied on the object 'proc_putObjectTVP', database 'configDB_name'  Reason In the ...
    • Collaboration Manager Service Application not found!

      Problem: When creating a new template on the Ribbon button in the template library following error message appears: Error message:  Collaboration Manager Service application not found! Please contact your administrator. Reason: This issue ...