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 / Button visibility base...
Power Apps
Answered

Button visibility based on sharepoint user groups

(1) ShareShare
ReportReport
Posted on by 2,249

 

I used below steps to handle visibility to admin button but im not sure how to check for the users button as i have added the same steps to check for users group as well but its only working for only admin or only users .

 

I need help in order to check Admin and users using filter property formula for the below steps in onstart property.

 

Security is my sharepoint list where i added items and gave unique permission for my security list items

Please refer the security list items

 

Veblitz_3-1669053381621.png

Admin Item ->Manage access->unique item level permission->Admin sharepoint group

Veblitz_5-1669053631472.png

 

Veblitz_4-1669053517033.png

 

Veblitz_0-1669052924217.png

Veblitz_1-1669052988847.png

Veblitz_2-1669053200690.png

 

Categories:
I have the same question (0)
  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @Veblitz ,

     

    Do you want the admin button to be visible for admin while the users button to be visible for users group except the admin?

    In other words, anyone can only see a button?

     

    If so, you could try as below:

    vjefferni_0-1669104632653.png

     

    Best regards,

  • Veblitz Profile Picture
    2,249 on at

    Thanks for the suggestions

     

    My requirement is

    1)if my user ID got access in Admin sharepoint group then Admin button should be visible in powerapps form and if i do not have access in admin sharepoint group then Admin button should be hided,

     

    2)same way if my user ID got access in users sharepoint group then users button should be visible otherwise users button is hided

     

    unfortunately, im facing below issue that is i removed my access in Admin groups and users group but still its showing Admin buttons

     

    Admin users list

     

    Veblitz_0-1669111002248.png

    User sharepoint group

    Veblitz_1-1669111041254.png

     

     

    I tried removing myself in both the Admin and users  sharepoint group(pls check above) but still Admin  button is visible but it should not display as i do not have access in admin group and please help in this scenario.

     

    I copied the formula as per your inputs

     

    Veblitz_5-1669111615651.png

     

     

    Veblitz_3-1669111446336.png

     

     

    Veblitz_2-1669111349751.png

     

     

     

  • Veblitz Profile Picture
    2,249 on at

    I kindly followup and appreciate kind help for the same.Thanks in advance.

  • Veblitz Profile Picture
    2,249 on at

    I kindly follow up and appreciate kind support

  • Veblitz Profile Picture
    2,249 on at

    Appreciate kind help and thanks in advacne

  • NurSabrina24 Profile Picture
    165 on at

    I assume you have refresh your sp list in your powerapps?

  • NurSabrina24 Profile Picture
    165 on at

    From my opinion, you can try to combine both in the same list and add a column name user type for example and determine if the user is admin or user. And you can include a Filter-If function where you will filter the SP list with conditions User().Email = <email column status> and then with If functions for the user type column to set btn visible. 

     

     

     

    Hope this helps you. I haven't tried the way you did, but this is according to what I have used for this. 

     

    Thank you.

  • Veblitz Profile Picture
    2,249 on at

    Yes i managed to refresh but unfortunately the formula does not work exactly as expected in any of the probability

  • Veblitz Profile Picture
    2,249 on at

    I request you to please share me the steps hence it would be helpful since i am newbie

  • Verified answer
    NurSabrina24 Profile Picture
    165 on at

    Instead of OnStart properties, I change it to Visible for each button with this function:

    LookUp('People and Groups', User().Email = Email, If('User Type' = "Admin", false, true)) - this is for Visible properties of User button

    NurSabrina24_0-1669360915094.png

    And for Visible properties of Admin button would be: 

    LookUp('People and Groups', User().Email = Email, If('User Type' = "Admin", true, false))

    Note: I change it to LookUp instead of Filter functions

     

    Hope this helps a little.

     

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 377 Most Valuable Professional

#2
11manish Profile Picture

11manish 165 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 110 Super User 2026 Season 2

Last 30 days Overall leaderboard