cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Different Home Screen depending on current user

I was wondering if it was possible to show a different home screen based on which user is currently logged in?

The scenario we have is an interactive process app which different departments can access, but each department has a different "Home" process. So when the user opens the app, they are automatically shown their "Home" process

 

2 ACCEPTED SOLUTIONS

Accepted Solutions
Highlighted
Frequent Visitor

Re: Different Home Screen depending on current user

1. You need a dummy homepage, usually a company logo only, with a hidden timer to navigate to department screen. 

2. You may use Office365Users.MyProfile().Department to determine what department screen the user redirect to. 

View solution in original post

Highlighted
Power Apps
Power Apps

Re: Different Home Screen depending on current user

Expanding on the suggestion by @HolmesLL suggestion, you can use the OnStart property of the app (which you can find on the first screen) to navigate to the first screen that you want your users to see. That would be the case if you didn't want a splash screen. The formula would look like the one below:

Set(name, Office365Users.MyProfile().Department);
If(
    name = "Sales", Navigate(SalesScreen, ScreenTransition.None),
    name = "Marketing", Navigate(MarketingScreen, ScreenTransition.None),
    name = "R&D", Navigate(RAndDScreen, ScreenTransition.None))

View solution in original post

5 REPLIES 5
Highlighted
Frequent Visitor

Re: Different Home Screen depending on current user

1. You need a dummy homepage, usually a company logo only, with a hidden timer to navigate to department screen. 

2. You may use Office365Users.MyProfile().Department to determine what department screen the user redirect to. 

View solution in original post

Highlighted
Power Apps
Power Apps

Re: Different Home Screen depending on current user

Expanding on the suggestion by @HolmesLL suggestion, you can use the OnStart property of the app (which you can find on the first screen) to navigate to the first screen that you want your users to see. That would be the case if you didn't want a splash screen. The formula would look like the one below:

Set(name, Office365Users.MyProfile().Department);
If(
    name = "Sales", Navigate(SalesScreen, ScreenTransition.None),
    name = "Marketing", Navigate(MarketingScreen, ScreenTransition.None),
    name = "R&D", Navigate(RAndDScreen, ScreenTransition.None))

View solution in original post

Highlighted
Frequent Visitor

Re: Different Home Screen depending on current user

Thanks for the suggestions. This is something definately worth exploring. We're not actually using "departments" from the user profile per se, as the fields we want to filter on are not stored in active directory. Instead of using the user profile, we're actually thinking of using a SharePoint list as a lookup. Presumably this can be done in a similar way to how you desribed.

Highlighted
Helper I
Helper I

Re: Different Home Screen depending on current user

this is exactly where I am stuck .. although my screen switch is happenning but SharePointIntegration.Selected is not returning the value when we click open the sharepoint list item first time. It switches to the correct screen only when I close and reopen the form second time. 

 

My form is Sharepoint customized form where we are implementing this.

Highlighted
Frequent Visitor

Re: Different Home Screen depending on current user

THanks for the solution. I'm working in a model driven app and would like the same functionality. How can I implement this solution? I don't see the event.

 

Thanks,

CP

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (8,857)