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 Automate / External B2B connect u...
Power Automate
Answered

External B2B connect user can't see external tenant data from Office365Users only home tenant data

(0) ShareShare
ReportReport
Posted on by 38

Have created an employee directory using the Office365Users connector, (have also tried groups, but external users couldn't see anything that way)

 

This powerapp is embedded in a SharePoint page

 

Tenant1 is the umbrella tenant that everyone is invited into using B2B direct connect (inbound settings configured for Tenant2 all access, all users)

Tenant2 is external, but belongs to Tenant1 company.

 

Tenant2 users have been invited into Tenant1 and their status is listed as Members instead of Guests (changed with powershell)

 

Tenant1 users see Tenant1 and Tenant2 users, app works great

Tenant2 users see Tenant2 users

 

Not sure what access to give Tenant2 users at this point (Directory Reader didn't seem to work)

 

Code below works for Tenant1, filters out share email and contacts

 

Filter(Office365Users.SearchUserV2({isSearchTermRequired: false,searchTerm: SearchBar.Text,top: 999}).value,
 AccountEnabled = true And !IsBlank(JobTitle) And ("@tenant1.com" in Mail Or "@tenant2.com" in Mail))

 

 

Categories:
I have the same question (0)
  • Verified answer
    v-xiaochen-msft Profile Picture
    on at

    Hi @adyboon ,

     

    I don't know if this is the default behavior for this connector.

    But there is a workaround that uses canvas to call the flow.

    vxiaochenmsft_0-1684808704513.png

    vxiaochenmsft_1-1684808757769.png

     

    According to your description, a guest user used the o365user connector to acquire users information from the home tenant in canvas.

    This flow uses the user credentials of the external tenant to get the users information and returns it to the canvas.

    Combining these two parts is the result you want.

     

    Best Regards,

    Wearsky

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 398 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 323 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 183 Most Valuable Professional

Last 30 days Overall leaderboard