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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to check if a gast...
Power Apps
Suggested Answer

How to check if a gast account exists in Cavan App

(0) ShareShare
ReportReport
Posted on by 2
Can I put the email address of gast account in Canvan App to check if this gast account exists?
Categories:
I have the same question (0)
  • Suggested answer
    SwatiSTW Profile Picture
    741 Super User 2025 Season 2 on at
    1. Go to Data > Add Data in Power Apps and add the Office365Users connector.
    2. Insert a Text Input control for entering the email address and name it txtEmail.
    3. Insert a Button and set its OnSelect property to
    Set(varGuestAccount, Office365Users.UserProfileV2(txtEmail.Text))
    4. Check if varGuestAccount is blank to determine if the guest account exists
    If(IsBlank(varGuestAccount), "Guest account does not exist.", "Guest account exists.")
    5. Use IfError in the OnSelect formula to handle errors
    Set(varGuestAccount, IfError(Office365Users.UserProfileV2(txtEmail.Text), Blank()))
    6. Display the result in a label using
    If(IsBlank(varGuestAccount), "No guest account found for this email.", "Guest account exists  for this email.")
  • YZ-31101452-0 Profile Picture
    2 on at
     Hi Swati,
     
    thank you for your reply. Office365Users.UserProfileV2(txtEmail.Text) does not for me. The parameter should be ID or principle name of user. I have just Email of gast account. With Email as attribute I get error. 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard