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 / StartScreen Role Based...
Power Apps
Suggested Answer

StartScreen Role Based Navigation

(1) ShareShare
ReportReport
Posted on by 6
I'm using StartScreen to add some deep linking to my app. I want to provide a link to the admin page but need it to navigate to the home screen if the current user is not on the user SharePoint list I have setup. I have tried various different formulas to no avail. This is the one that seemed most promising but still only wants to navigate to the admin screen. 
 
Switch(
Param("screenname"),
"viewedit",
'scrn_ViewReq',
"admin",
If(
!IsBlank(
Filter(
'User List', User.Email = User().Email
)
),
'scrn_Admin',
'scrn_Main'
),
'scrn_Main'
)
Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    154,534 Most Valuable Professional on at
    Hi @CU17122216-0​​​​​​​
    Try this - If you use Filter, you need to test for Empty as it is a Table
    Switch(
       Param("screenname"),
       "viewedit",
       'scrn_ViewReq',
       "admin",
       If(
          !IsBlank(
             LookUp(
                'User List', 
                User.Email = User().Email
             )
          ),
          'scrn_Admin',
          'scrn_Main'
       ),
       'scrn_Main'
    )
     
    Please click Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like.
    MVP (Business Applications)    Visit my blog Practical Power Apps    Buy me a coffee
  • CU17122216-0 Profile Picture
    6 on at
    I tried LookUp as well. I'll try it again tomorrow to be sure. Thank you for your response! 
  • Suggested answer
    Mehmet_Powerapps Profile Picture
    26 on at
    I found this solution, 
    Switch(
        Param("screenname"),
        "viewedit", 
        'scrn_ViewReq', 
        "admin", 
        If(
            CountRows(
                Filter(
                    'User List', 
                    User.Email = User().Email
                )
            ) > 0, 
            'scrn_Admin', 
            'scrn_Main'
        ), 
        'scrn_Main'
    )
  • CU17122216-0 Profile Picture
    6 on at
    I figured out the problem. At my organization, we technically have two emails; one with our name and one with our employee ID. Turns out the User().Email pulls our employee ID email and the people picker field in SharePoint is our name email. 
     
    This is what I ended up doing:
     
    If(!IsBlank(LookUp('User List',Employee_ID = Left(User().Email,5)
     
     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 525 Most Valuable Professional

#2
Haque Profile Picture

Haque 273

#3
Kalathiya Profile Picture

Kalathiya 232 Super User 2026 Season 1

Last 30 days Overall leaderboard