Microsoft Graph API to show actual state of Teams user?

New Contributor

We have a requirement to invite external (guest) users into Teams in bulk. Current goal is to write an orchestration in Azure Durable Functions that we can trigger from various business events. For avoidance of doubt this is authenticating to Microsoft Graph with app credentials.


Following the instructions at and elsewhere we can create/invite a guest user and add them to an existing Team.


As documented, there is a significant delay between adding the user to AD (which directly adds to the Office 365 group) and the user appearing in Teams. However contrary to the docs, even using the beta endpoint we have seen typical delays of 2 to 3 hours.


We have already determined that we will need to separate creation of the guest user from sending an invitation (by taking over that part of the process, as per, and we want to delay sending the email to the user until we are reasonably confident that the user will be present in Teams.


Although we could just put in a delay of (say) 4 hours, it would be more deterministic if we could programmatically check if the user had propagated to the Team.


Unfortunately querying either{groupId}/members or{groupId}/members shows the new member as added immediately, even though it is not yet in Teams.


Has anyone else attempted this problem and found another solution?

3 Replies

Hey Julian,


Do you find a solution with this problem ?


Not yet - we parked the requirement and set up an external forum for the particular use case we were working on. Wi l revisit at some point and update here!


@Julian Elve did this ever get solved?