Help with Upload pages under Master pagers + Remove greyed out Limited access

Huwie Teo 20 Reputation points
2024-10-04T10:48:30.0533333+00:00

I tried make some styling changes on the Master pages by going into Display Templates : Search, and trying to upload a html file. However as a Site super-admin, i received error message stated that Sorry, you don't have access. Awaiting approval. We'll let you know about any updates.

However no one in the office team receive this request email.

When I look in to the permission group, i noted my Owner group permission other than 'Full Control' was ticked, the 'Limited access' was ticked and GREYED out. There is no way for me to remove this check box.

Anyone can provide some helpful tips to resolve this?

A. Able to upload HTML to Master pages section / B. Remove Limited Access.

Thank you.

sharepoint-greyout

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

Accepted answer
  1. Emily Du-MSFT 47,296 Reputation points Microsoft Vendor
    2024-10-10T10:20:09.9033333+00:00

    Based on the information you provided, I understand following. Is it right?

    1.https://xxxxxxx.sharepoint.com is a communication site and home site in the tenant.

    2.Search is a subsite under https://xxxxxxx.sharepoint.com.

    In the communication site, you cannot enable Server Publishing Infrastructure feature in it.

    And master page (HTML page) must have Server Publishing Infrastructure feature enabled.

    So, by default, you cannot add master page (HTML page) into the communication site.

    User's image

    As a workaround, I suggest you use team site.

    Sorry for wasting your time by not explaining this in the previous answer.

    If this answer is helpful, please click "Accept Answer" and kindly upvote it


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    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.

    1 person found this answer helpful.
    0 comments No comments

4 additional answers

Sort by: Most helpful
  1. Emily Du-MSFT 47,296 Reputation points Microsoft Vendor
    2024-10-08T08:00:53.3733333+00:00

    The Deny permission is caused by custom script disable in the site collection.

    You should enable custom script in the site and tenant level.

    1.Site level.

    Go to SharePoint admin center -> Active sites -> Select the site -> Settings -> Custom scripts -> Set Allowed.

    1

    2.Tenant level.

    Go to SharePoint admin center -> Settings -> Classic settings page -> Custom scripts -> Allow users to run custom script on self-service created sites.

    2

    Note: These settings may take up to 24 hours to reflect.

    To immediately enable custom script, I strongly recommend you enable custom script through PowerShell.

    $AdminSiteURL="https://tenant-admin.sharepoint.com"
    $SiteURL="https://tenant.sharepoint.com/sites/emilytest" 
    Connect-SPOService -URL $AdminSiteURL
    Set-SPOSite $SiteURL -DenyAddAndCustomizePages $False
    

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    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.

    1 person found this answer helpful.

  2. Emily Du-MSFT 47,296 Reputation points Microsoft Vendor
    2024-10-07T10:07:44.0133333+00:00

    Based on the screenshot you provided, it seems that you are in the Designer group. Designer group does not have enough permissions to make some styling changes on the Master pages.

    Here are steps to troubleshoot the issue.

    1.Go to Site permissions, grant the account with full control permission.

    2.Go to Site settings -> Site collection features -> Deactivate the "Limited-access user permission lockdown mode" feature.

    3.Enable the custom script in the site collection.

    $AdminSiteURL="https://tenant-admin.sharepoint.com"
    $SiteURL="https://tenant.sharepoint.com/sites/emilytest" 
    Connect-SPOService -URL $AdminSiteURL
    Set-SPOSite $SiteURL -DenyAddAndCustomizePages $False
    

    4.If the issue persists, set the account as site administrator.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    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.


  3. Emily Du-MSFT 47,296 Reputation points Microsoft Vendor
    2024-10-09T02:53:03.28+00:00

    1.An alert pop-up shows "When you set the custom scripts setting to Allowed, it will automatically switch back to Blocked within 24 hours.", it means you have 24-hours to play-around.

    2.$SiteURL parament does not refer to the URL of search page, it refers to the URL of site collection where the Master pages gallery is located.

    For example:

    1

    $AdminSiteURL="https://tenant-admin.sharepoint.com"
    $SiteURL="https://tenant.sharepoint.com/sites/emilytest" 
    Connect-SPOService -URL $AdminSiteURL
    Set-SPOSite $SiteURL -DenyAddAndCustomizePages $False
    

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    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.


  4. Huwie Teo 20 Reputation points
    2024-10-10T12:07:54.1233333+00:00

    Hi Emily.

    In fact, https://xxxxxxx.sharepoint.com is a Classic site.

    2.Search is not a 'subsite' but it just a 'page' under https://xxxxxxx.sharepoint.com.

    And I have Server Publishing Infrastructure feature Active.

    These files can be edited dated back in 2022, however it stop working from my last attempt (last week).

    20241010-o


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.