cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
VilPel
Helper IV
Helper IV

Office 365 Users V2 connector doesn't support guest users?

Hello guys,

 

My Power Apps solution uses the Office365Users -connector to fetch data from the current user (Get my profile (V2)) of the app and saves that data into a variable so it can be used all over the app. Recently we discovered a business need that external users in a tenant should be able to use our Power App.

 

For some reason this V2 function does not return any data for the guest users even though the guest users are properly licensed. Using the deprecated old function to get the profile details returns everything nicely for some reason. Below I have posted a screenshot using the GUEST user's account to return various values using the original and V2 connectors. As you can see the V2 connector does not return any values for the guest user.

 

FUNCTIONS.png

 

We know that moving to use the original deprecated connector would be a preliminary solution but it wouldn't be a long-term solution as Microsoft will probably discontinue it in the near future. Is this the case?

 

What could we do to return the email and name of the guest users? Using the User()-function is not a solution because that doesn't support the cases where the UPN and the email are different in a tenant.

 

Thank you in advance,

 

Ville

 

1 ACCEPTED SOLUTION

Accepted Solutions
StalinPonnusamy
Super User
Super User

Hi @VilPel

 

I don't think Microsoft depreciates the Office365Users.MyProfile() since both uses the different object. MyProfileV2() uses Graph API user object. 

 

1) Office365Users.MyProfile() User Object

StalinPonnusamy_0-1639402964656.png

 

2)  Office365Users.MyProfileV2() User object which uses Graph API

StalinPonnusamy_1-1639402964694.png


Thanks,
Stalin - Learn To Illuminate

View solution in original post

1 REPLY 1
StalinPonnusamy
Super User
Super User

Hi @VilPel

 

I don't think Microsoft depreciates the Office365Users.MyProfile() since both uses the different object. MyProfileV2() uses Graph API user object. 

 

1) Office365Users.MyProfile() User Object

StalinPonnusamy_0-1639402964656.png

 

2)  Office365Users.MyProfileV2() User object which uses Graph API

StalinPonnusamy_1-1639402964694.png


Thanks,
Stalin - Learn To Illuminate

Helpful resources

Top Solution Authors
Top Kudoed Authors
Users online (3,512)