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 visible only fo...
Power Apps
Unanswered

Button visible only for users with admin role in users sharepoint list

(0) ShareShare
ReportReport
Posted on by 43

Hi,

I need make visible a button only if users role in 'SP Users list' is admin.

This is my list:

ThommyPrez_0-1695939501501.png

Titolo is text column with Last Name and First Name of user, Role is selection type column and Users is email address column.

 

I have this code on visible property of ADD button but not work:

!IsBlank(LookUp('SP Users list'; User().Email = Users; Role.Value = "Admin"))

 

Can you help me to find a solution?

Categories:
I have the same question (0)
  • EddieE Profile Picture
    4,650 Moderator on at

    @ThommyPrez 

    Try this

    LookUp('SP Users list'; Users = Lower(User().Email); Role.Value) = "Admin"

     

  • ImaKickUrAsh Profile Picture
    51 on at

    Looks like you're very close, try this:

    !IsBlank(
     LookUp(
     'SP Users list',
     User().Email = Users.Email,
     Role.Value = “Admin”
     )
    )

     

  • ThommyPrez Profile Picture
    43 on at

    Tried but don't work 😞 If I change my own role in SP list from Admin to User, the button is not visible and formula result is false with each role.

  • ThommyPrez Profile Picture
    43 on at

    Tried but don't work 😞 same result as other solution from @EddieE 

  • ImaKickUrAsh Profile Picture
    51 on at

    Is the SharePoint column "Users" a people picker? & is it multi-select?

  • ThommyPrez Profile Picture
    43 on at

    Yes "Users" column is a people picker but no multi-select.

  • Jayant_Kumar Profile Picture
    4 on at

    check the video on this topic

    Implementing Role Based Security in Power Apps - YouTube

    PowerApps Hide Button Based on User and other fun - YouTube

     

    You need to create a list and add an item on it. 

    Break the permission and set item level permission.

    Now on Powerapp fetch the that particular item, if the record count is 1 means permission is fine else no permission. Set button's visibility based on count.

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

#2
11manish Profile Picture

11manish 181 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 112 Super User 2026 Season 2

Last 30 days Overall leaderboard