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 / 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:
  • Suggested answer
    SwatiSTW Profile Picture
    809 Super User 2026 Season 1 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 224 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 126

Last 30 days Overall leaderboard