web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : YJ9SyPA0M57Xw666c8kAfP
Power Pages - Power Apps Portals
Answered

Newbie Question #2 - How do I remove sign in from my menu?

Like (0) ShareShare
ReportReport
Posted on 11 May 2020 11:01:42 by 13

Making a fully anonymous portal so I want to remove all sign-in links/info and search. 

 

I've disabled search, deactived pages etc and all the options on the sign-in page in my portal, but I haven't figured out how to find a way to disable "sign-in" in my portal menu or the actual sign-in page. Is there a way to do this?  The menu is more important athestically, but be good if I could find a way to disable the sign-in page too. 

  • lukas_nz Profile Picture
    13 on 12 May 2020 at 02:22:06
    Re: Newbie Question #2 - How do I remove sign in from my menu?

    Thanks, this is perfect! Super appreciate Oliver!

  • Verified answer
    oliver.rodrigues Profile Picture
    9,342 Most Valuable Professional on 11 May 2020 at 11:49:51
    Re: Newbie Question #2 - How do I remove sign in from my menu?

    I recommend avoid deactivating the Web Pages itself, there are a few Site Settings that can help you with that

     

    in regards disable login, I wouldn't really recommend that, you might need to clear the cache from time to time in your Portal to reflect the most recent configuration, I am giving two options to disable login below here

     

    Disable Search:

    set the Site Settings "Search/Enabled" to false

     

    Disable Login (personally I don't recommend):

    set below site settings to false, you will need to Restart the portal via Admin Center to reflect, as some of this are loaded when the website starts in Azure/server level: https://docs.microsoft.com/en-us/powerapps/maker/portals/admin/admin-overview

    • Authentication/Registration/Enabled
    • Authentication/Registration/AzureADLoginEnabled
    • Authentication/Registration/ExternalLoginEnabled
    • Authentication/Registration/InvitationEnabled
    • Authentication/Registration/LocalLoginEnabled

    Even by deactivating the above, the SignIn link will still be present on the menu, and you need to hide it via JS, which comes to my recommended approach

     

    Disable Login (recommended):

    Leave at least one login type enabled for clearing cache purposes, and hide the sign in via JS

    • Open the Web Template Header, and at the bottom there is some JavaScript code, within the window.onload function add the following code:
    $('a[href^="/SignIn"]').hide();

    hidesignin.PNG

    • The above will hide the SignIn link, but you might notice that there is a small delay, and the user will still know that the SignIn exists, so I recommend changing the SignIn text to a simple "-" or "."
    • Create a Content Snippet called "links/login" with the text

    snippet.PNG

     

     

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
Lucas001 Profile Picture

Lucas001 60 Super User 2025 Season 2

#2
Fubar Profile Picture

Fubar 55 Super User 2025 Season 2

#3
surya narayanan Profile Picture

surya narayanan 35

Loading complete