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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / enable search post aut...
Power Pages
Answered

enable search post authentication

(0) ShareShare
ReportReport
Posted on by 77

How to enable search after authentication?

 

I have enabled search in site setting son our DEV environment which enables search in the header on home page.  I can utilise search before authentication and when I click on a link in the search results, I can get straight to the web page without logging in and being authenticated.

 

How can I enable search on the post authentication home page or have the user pushed to login authentication when I click on the 'search' icon?

Categories:
I have the same question (0)
  • Verified answer
    OOlashyn Profile Picture
    3,498 Most Valuable Professional on at

    Hi @DarrenPlant ,

    You can do several things. First, you can hide the search completely from anonymous users. For that, you would need to modify the header template to wrap the search part into if user expression to show it only to authenticated users. Another approach if you still want to show the search bar to everyone is to use Website Access Control Rules (see official doc here). Using them you can restrict some pages of your portal to be accessible only for a selected list of web roles. So if the anonymous user will try to access them portal will redirect it to sign-in page to make sure that the user has proper access. However, I am not totally sure if a page with enabled Access Control Rule will even show in the search.

  • DarrenPlant Profile Picture
    77 on at

    Hi @OOlashyn thanks for your valuable input here.  I have quickly tested by assigning authenticated user web role to certain pages and they now fail to appear in the search results.  I think this is good enough for my needs.  I will ensure web role is assigned to all pages and therefore search will show no results for a user that has not logged in.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
Mohsin Ali Profile Picture

Mohsin Ali 33

#2
sannavajjala87 Profile Picture

sannavajjala87 28 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 22 Super User 2026 Season 2

Last 30 days Overall leaderboard