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 :
Power Platform Community / Forums / Power Pages / enable search post aut...
Power Pages
Unanswered

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,496 Most Valuable Professional on at
    Re: enable search post authentication

    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
    Re: enable search post authentication

    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Pages

#1
Jerry-IN Profile Picture

Jerry-IN 66

#2
Fubar Profile Picture

Fubar 45 Super User 2025 Season 2

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 31 Super User 2025 Season 2

Last 30 days Overall leaderboard