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

Community site session details

Session Id : NYuthbsXOpcZojYnKtaAX7
Power Apps - Building Power Apps
Answered

How To compare email

Like (1) ShareShare
ReportReport
Posted on 20 Dec 2022 05:13:32 by

I want to compare xyz@email=user().Email  on based on this User can login as emplyooee or infra team like

SRGDEVELOPER_0-1671513186774.png

And how to diffrentiate screens wise showing 

I have the same question (0)
  • Verified answer
    Community Power Platform Member Profile Picture
    on 20 Dec 2022 at 09:28:15
    Re: How To compare email

    Set(varUserEmail, txtusername.Text);
    Set(varUserPassword,txtpassword.Text);
    Set(varUserType, LookUp(UserList, email = varUserEmail,role));
    Switch(varUserType,
    "Admin", Navigate(admindashboard, Fade),
    "user", Navigate(Userdashboard, Fade),
    Notify("Incorrect Login Details", NotificationType.Error)
    )

  • poweractivate Profile Picture
    11,078 Most Valuable Professional on 20 Dec 2022 at 05:23:13
    Re: How To compare email

    @Anonymous How do you determine if they are an Infra or employee? Is this information in a SharePoint List or do you want to check the O365 group membership?

    To check the O365 group membership try this:

     Redirect users to different pages based on their O365 group membership 

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Tom Macfarlan – Community Spotlight

We are honored to recognize Tom Macfarlan as our Community Spotlight for October…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 885 Most Valuable Professional

#2
developerAJ Profile Picture

developerAJ 571

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 352 Super User 2025 Season 2

Last 30 days Overall leaderboard