How to get a list external tenant users from a resource tenant with azure ad B2B direct connect configured?

oops-9299 40 Reputation points
2023-03-30T07:46:29.95+00:00

I want to get a list external tenant users from a resource tenant using azure ad applicaion.

I configured B2B direct connect between resource tenant and external tenant.

And i can search for external users in Teams. Is there a idea to get the list of users in ms graph api or other way?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,581 questions
Microsoft Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
2,639 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,459 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. CharanyaB-MSFT 1,421 Reputation points Microsoft Vendor
    2023-03-30T09:26:55.34+00:00

    Hello @oops-9299,

    Thanks for reaching out!

    You can use List members of a channel API to retrieve list of channel members. This API will return list of all the users from current tenant and external tenant who are part of that shared channel.

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote. If you have any further questions about this answer, please click Comment.