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 / Login to Help Desk as ...
Power Apps
Answered

Login to Help Desk as Admin 2020

(1) ShareShare
ReportReport
Posted on by 6

Hello there,

Same old problem when trying to log in as Admin into the Help Desk app from Power Apps.

 

I have read all the suggestions so far, tried with different emails, tried to see if the email is correct, tried to use Lower:

If(Lower(MyProfile.Mail) in Lower(AdminList.Value)

 

When I highlight myProfile to see the intel, it shows a message "PowerApps encountered an intern... (which I believe be the problem).

 

Any other ideas?

 

Thanks very much 🙂

2020-12-01 (3).png

 

 

Categories:
I have the same question (0)
  • Verified answer
    iAm_ManCat Profile Picture
    18,256 Most Valuable Professional on at

    Hi,

     

    Just a quick note on this - how are you storing the values for AdminList? Is it derived from User().Email?

     

    Office365Users.MyProfile.Mail gets you the user's primary email smtp address

    User().Email gets you the user's UserPrincipalName.

     

    depending on the setup of your IT infrastructure these two may not be the same value.

     

    If you really want to do debugging to confirm this yourself, have two labels, one with User().Email as its value and the other with MyProfile.Mail then a third label with AdminList.Value so that you can verify whether those values exist within it.

     

    Additionally, wherever possible, if you must use MyProfile, then use MyProfileV2 as it's the more updated function call.

     

    Cheers,

    Sancho

  • leofranco Profile Picture
    6 on at

    Hi @iAm_ManCat

     

    Thank you very much for your tip, it really worked!

    I have changed MyProfile.Mail for User().Email :

     

    If(User().Email in AdminList.Value,Set(isAdmin,true),Set(isAdmin,false));
    If(isAdmin,Navigate(MyTicketsScreen,None),Set(ShowAccessError,true))

     

    Success!

    Thanks very much!

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 463

#2
WarrenBelz Profile Picture

WarrenBelz 364 Most Valuable Professional

#3
11manish Profile Picture

11manish 275

Last 30 days Overall leaderboard