web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Show Button or Screen ...
Power Apps
Answered

Show Button or Screen based on User permissions

(0) ShareShare
ReportReport
Posted on by 106

Is there a way to create an If statement for the Visibile property on a button to only display if the current user has Create item permission on the list?

 

Or

 

Is there a way to show a particular OnStart screen based on who the user is?

 

Thanks!

Categories:
I have the same question (0)
  • cherie Profile Picture
    on at

    You can use the User function (https://powerapps.microsoft.com/en-us/tutorials/function-user/) or the office 365 connector (https://powerapps.microsoft.com/en-us/tutorials/connection-office365-outlook/) to find out who the user is and navigate to a particular screen based on the user.

     

    I'm not sure about how to detect if the user has create list permissions however. @KeremY or @sarafankit who might know the answer.

  • Grahambo05 Profile Picture
    106 on at

    @cherie

     

    I have tried using DataSourceinfo.CreatePermission but that does not work. Other users have pointed out this issue.

     

    What screen property would you set to enforce a specific startup screen?

    Could this be used for a group of users?

  • cherie Profile Picture
    on at

    You can use the OnStart property. That will trigger the once when the app is run.

     

    You can check if the user belongs to a table (eg. an admin table). Take a look at the Filter function (https://powerapps.microsoft.com/en-us/tutorials/function-filter-lookup/)

  • Alam Profile Picture
    on at
    If you could add an example of pulling this info., it would be really great
  • cherie Profile Picture
    on at

    Which part would you need assistance with?

  • Alam Profile Picture
    on at
    To hide/view specific buttons based on users in specific groups. Like users in my team cam view all buttons, and hide few for rest all users in org.
  • bishoy Profile Picture
    150 on at

    Hi,

     

    You can use the below

     

    If(User().Email = "user@domain.com", DisplayMode.View)

  • BitLord69 Profile Picture
    914 on at

    Hi!

     

    In this old post: https://powerusers.microsoft.com/t5/General-Discussion/Is-it-possible-to-switch-the-view-as-InfoPath-in-powerapps/m-p/54604#M22624 I talk about using membership in AD groups to control the visibility of UI elements.

     

    Good luck!

  • bBI Profile Picture
    13 on at

    > You can use the below

     

    > If(User().Email = "user@domain.com", DisplayMode.View)

     

    Where do we use this?

  • Verified answer
    cherie Profile Picture
    on at

    You can use the onStart function or onvisible depending on your use case

     

    https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/controls/control-screen

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard