Is there a way to return contacts in GET /groups/{id}/transitiveMembers reponse?

Thanos Terzis 20 Reputation points

Let 's assume that we have added some users through Contacts using M365 admin center. We decide to add these contacts in our distribution list through M365 admin center. Is there a way for these contacts to be returned using /groups/{id}/transitiveMembers api call?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,818 questions
0 comments No comments
{count} votes

Accepted answer
  1. TH-4749-MSFT 3,290 Reputation points

    Hi Thanos Terzis, Thanks for reaching out. The /groups/{id}/transitiveMembers api call does return mail contacts. If you would like the api call to return just the mail contacts then you use OData cast in the api call like below: Thanks.

    0 comments No comments

0 additional answers

Sort by: Most helpful