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 / How do I troubleshoot ...
Power Apps
Answered

How do I troubleshoot buttons that are not visible when they are supposed to be in a production app?

(1) ShareShare
ReportReport
Posted on by 831 Moderator

I have an app where the home screen has several buttons. They are visible based on the user's access level (user, editor, admin). I've tested with my admin account and I can get all the buttons to appear. I've also changed the admin accounts access level to 'user' and only the user level buttons appear. That's all fine. Where I run into issues is with my test account. The permissions are set to 'user' and no buttons appear. If I change to 'admin' and still no buttons appear. I am thinking it might have to do with permissions on the role level but not really sure what permissions are needed if any. 

 

This is the code I am using to check the user's access level

 

 

LookUp('App Users', 'Email Address' = User().Email And ('Admin Access' = "Yes" Or 'User' = "Yes"),true)

 

 

NOTE: I also put the users full name and email address on the screen with this code and this all works fine.

 

 

User().FullName
User().Email

 

 

As an additional test to see if the app is actually reading the table for this 'test' account I added a text box and used this code. It does not return the user's email address as expected.

 

 

LookUp('App Users', 'Email Address' = User().Email, 'Email Address')

 

 

Categories:
I have the same question (0)
  • Verified answer
    futr_vision Profile Picture
    831 Moderator on at

    I decided to fiddle with security roles. I changed the Read access from User to Organization and that appears to work. Why is that? Should all my shared tables be set to Organization?

  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @futr_vision ,

     

    It looks like you created a table that saved each user and their role.

    The problem is that many records in the table are not created by the user. So when the user who doesn't have enough security role get records, he cannot find the corresponding records.

    I recommend that you set the owner of the user's record to themselves. This way, even if they only have 'user' permission, they can still see their own records.

     

    Best Regards,

    Wearsky

  • futr_vision Profile Picture
    831 Moderator on at

    Thanks. I'm not completely sure I want to go through that process since I need to essentially give them access to almost all other tables since those tables drive the values in the combo boxes in the app. I am finding that the Organization permission seems to fix the issue for and of the create, read, write, etc... permissions needed.

    futr_vision_4-1720014852486.png

     

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 352 Most Valuable Professional

#2
11manish Profile Picture

11manish 192

#3
Valantis Profile Picture

Valantis 128

Last 30 days Overall leaderboard