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 / Present different scre...
Power Apps
Answered

Present different screen or button based on login user - App start up screen

(0) ShareShare
ReportReport
Posted on by 188

Dear Community,

 

I know this probably has been discussed numerous times, but I am still struggling to fully grasp it.

And also I would like to know the most logical and simplist approach.

So please share with me your thoughts!

 

Here is my context:

I have built a standard three screens Canvas app with a dataverse table. I have two AAD users that belong to two different AAD security groups.

User - User Group

Admin - Admin Group

Either User and Admin would have different security roles from Power Platform.

 

I like to know the following two approaches:

1. Based on the logged in user to Power Apps, the app will present different screen

or

2. Based on the logged in user to Power Apps, the app will present the same screen but the Admin can see an extra button.

 

I think I should utilise the App.StartScreen property to retrieve a property about the user, set a variable base on this user's property.

Then, I can send user to a different screen at launch (Scenario 1), or show/hide the button (Scenario 2).

 

However, I don't know what's the best approach. 

Ideally, if we could retrieve user's AAD group name or security role at the start up, that would make things very easy.

I don't think that's possible.

 

Any advice would be super appreciated!

Thanks all!

Categories:
I have the same question (0)
  • Verified answer
    MudassarSZ365 Profile Picture
    591 on at

    Hi @nhtkid ,

    On the OnStart property of the App, set a variable based on the user's role:

    Set(UserRole, Office365Users.UserProfile(User().Email).JobTitle)

    In your main screen, use this variable to control the visibility of the extra button:

    If(UserRole = "Admin", SetAdminButtonVisible(true), SetAdminButtonVisible(false))

    If you think my solution is helpful for you, then please accept it. 😊

     

  • nhtkid Profile Picture
    188 on at

    Hi @mudit,

    Thanks for the response.

    I tried it and looks like it does not like the UserProfile function.

    nhtkid_0-1700275880094.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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 431

#2
WarrenBelz Profile Picture

WarrenBelz 360 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 280 Super User 2026 Season 1

Last 30 days Overall leaderboard