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 Apps / Power Apps > Navigatio...
Power Apps
Unanswered

Power Apps > Navigation menu > how do I hide specific elements?

(0) ShareShare
ReportReport
Posted on by 49

Dear Power Apps Community ~

 

I am seeking your guidance for an app I have been building. An inventory app that is ideally accessible by normal users (people who want to borrow equipment) and admin users (people who maintain and update the database).

 

I followed tutorial by Reza (super generous with his time and knowledge): https://www.youtube.com/watch?v=dP74npyyvGc and managed to create a left navigation menu that works! (Yay!). 

 

But now, I am a bit stuck as I would like to hide some navigation items from the normal users, and I don't know how to do this. (please be patient with me - I am a Power Apps beginner 🙂 See my attached file.

 

I would greatly appreciate if someone could guide me. Thanks in advance ~ Joelle

 

I also have this list > Admins where i have 2 types of role: User and Admin

roles inventory.png

nav left menu.png
Categories:
I have the same question (0)
  • madmajor34 Profile Picture
    15 on at

    Hi,

    I would say, use the user function to determine if someone is allowed to see something could be useful,

    But the way you are presenting the app it could be easier to use and manage iif you filter with admin rights :

    This video explains this really well:

     

    https://www.youtube.com/watch?v=nErEMR5jM-0

     

  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @Joellelechat ,

     

    Ideally, you can have a place to maintain users privileges such as a SharePoint list. Then you will find that the number of icons is equal to the data source generated in OnStart:

    vjefferni_0-1673944925608.png

     

    So, you can hide icons by generating different tables based on logged in user and their privileges in SP list:

    ClearCollect(colNav, If(LookUp(SPlist, UserName = User().FullName, Privilege) = Admin, Table({...},{...},{...},{...},{...}),Table({...},{...},{...})))

     

    As the result, Admins can see five icons and normal users can see three icons.

     

    Best regards,

  • Joellelechat Profile Picture
    49 on at

    Thank you for getting back to me. The video tutorial helped me a bit.

  • Joellelechat Profile Picture
    49 on at

    P.S: Sorry, I forgot my manners. I meant to say "Hi", first.

  • Joellelechat Profile Picture
    49 on at

    Hi,

    many thanks for your guidance.

     

    I made some changes and I wrote this:

     

    ClearCollect(colNav, If(LookUp(Admins, currentUser = User().FullName, Role) = "Admin", Table(
    {
    MenuText: "Home",
    MenuIcon: Icon.Home,
    ScreenToGoTo: Home
    },
    {
    MenuText: "Resources",
    MenuIcon: Icon.Items,
    ScreenToGoTo: Resources
    },
    {
    MenuText: "Bookings",
    MenuIcon: Icon.CalendarBlank,
    ScreenToGoTo: Bookings

    },
    {
    MenuText: "Reports",
    MenuIcon: Icon.Database,
    ScreenToGoTo: Reports
    },
    {
    MenuText: "Knowledge Base",
    MenuIcon: Icon.Notebook,
    ScreenToGoTo: KB
    }),Table({MenuText: "Home",
    MenuIcon: Icon.Home,
    ScreenToGoTo: Home
    },
    {
    MenuText: "Resources",
    MenuIcon: Icon.Items,
    ScreenToGoTo: Resources
    },
    {
    MenuText: "Bookings",
    MenuIcon: Icon.CalendarBlank,
    ScreenToGoTo: Bookings

    })

    ));
    Set(currentUser, User());

    Set(adminAccess, IsBlank(LookUp(Admins, Fullname.Email = currentUser.Email && Role.Value = "Admin")));

     

    But now the navigation is not showing to me anymore. (I have a sharepoint list named " Admins" where my Role = Admin...)

     

    I think I messed up somewhere...

     

    Joelle

     

     

     

     



     

  • Sanshubh Profile Picture
    512 on at

    Hello @Joellelechat 
    @v-jefferni 's way is perfect for your scenario.

  • Joellelechat Profile Picture
    49 on at

    Hi, yes, I was thinking the same too. It's just that I can't make this happen yet. I messed up somewhere and now the icons don't show to me 😅

  • Joellelechat Profile Picture
    49 on at

    Hi v-jefferni,

    Do you think you could do a quick video capture showing  how I can achieve what you have describe? 🙏 please please...

     

    Thank you,

    Joelle

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 345 Most Valuable Professional

#2
11manish Profile Picture

11manish 207 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 177

Last 30 days Overall leaderboard