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 / Hide Web Link based on...
Power Pages
Unanswered

Hide Web Link based on Web Role

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello Community,

 

On the Power Apps Portal, if I have a web link which contains no pages - so in other words just serving as a menu without pages associated to it, is there a way to hide the web link based on the web role or other permissions? I couldn't seem to find any settings where I can do this through configuration. Again, I am not using the web page access control rules because it's not the web page I am trying to restrict here, it's simply the web link, and it's for web link that doesn't contain any web pages.

 

Would appreciate some pointers.

 

Thank you!

Categories:
I have the same question (0)
  • Christian Leverenz Profile Picture
    1,214 on at

    Hi @Anonymous ,

     

    as far as i know you can check the roles of a user in liquid. ( https://docs.microsoft.com/en-us/powerapps/maker/portals/liquid/liquid-objects#user ). So, you could place a javascriptoneliner to hide that menueitem when the user has a specific role.

    Or just go to the headertemplate and apply a condition while rendering, whether this user is in the specific role and just do not render the menueiten.

     

    Nevertheless: you have somehow to give the code knowledge WHICH menuitem is not to be rendered. Either, you do it by name or you add a custom attribute to the weblink (which i usually try to avoid).

     

    Hope it points in a solutiondirection.

    Have fun,

    Christian

  • ragavanrajan Profile Picture
    7,044 Most Valuable Professional on at

    Hi @Anonymous 

     

    We have done this in one of our project. 

    The approach was 

     

    In Portal studio: 

     

    1. Create a webpage ex: Test Form.

    In portal management:

    1. Edit the default link web set and find the newly created page.

    2. Add your external url or link 

    3. Then apply web page access control rule as usual 

    4. Apply web roles on top of it. 

     

    Hope it helps.

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

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

  • ragavanrajan Profile Picture
    7,044 Most Valuable Professional on at

    The approach from @chleverenz is also feasible. Good learning for liquid and JavaScript. 

     

    Give us a shot if you are struck. 

     

    Cheers 

    Ragavan 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you @chleverenz , @ragavanrajan  for sharing the insights!

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
Fubar Profile Picture

Fubar 47 Super User 2026 Season 1

#2
SP2019admin Profile Picture

SP2019admin 20

#3
Mohsin Ali Profile Picture

Mohsin Ali 19

Last 30 days Overall leaderboard