I use Graph API in Microsoft Flow. I create a guest account with Graph , this is successful. After that I add the created account to an existing Office 365 group which is a Team. This is also successful. I can see in AAD that the newly created guest account is a member of the O365 group.
But when I look in Microsoft Teams GUI the quest is NOT a member of the team. The guest HAS accepted the invitation to the TENANT. But an invitation for the TEAM is not sent using this way of adding a member to a Team and thus the guest cannot accept an invitation to the team. I don’t know if this is a condition for this to work but when you add a member using the GUI an invitation is sent.
The guest account is available in Teams so adding the guest manually is possible but we want to automate this.
I notice however that after several hours (9!) in the Teams GUI the added account is mentioned as having joined the Team. So in de background something is hapening. The sad thing is that when this user starts Teams is says that he is not a member of any Team. The added guest account is granted a O365 F1 license.
Is there a way to speed things up?
Hi @BartSchaap ,
Could you share a screenshot of the flow?
It seems that you’ve created a custom connector in MS flow that works with MS Teams.
Could you share the run details of the flow as well?
By the way, do you mean that though Teams GUI added account show that the user has joined the Team, actually the user is not a member of the Team?
I will help reproduce this issue with more details.
I did not make a custom connector. What I did (and what worked ) was:
I created an Azure AD app, this app has the rights to create users in ADD and add a user to an O365 group using Graph API, it needs Directory.ReadWrite.All and User.Invite.All and User.ReadWrite.all.
An Azure AD app had an Id and a secret. Using this info in Flow I was able to create a user. NOTE: in this case it was a guest user, not a normal user! And I was able to add the created user to an already existing O365 group as a member. This is all succesfull. The thing is however that if this guest user logs and starts Teams GUI, he receive a message saying he is not a member of any Team. Even after several days he still gets this message, so my solution does not give the desired functionality while beeing technically correct
Hi @BartSchaap ,
Are you using Flow to create and add a guest user to a Teams group?
Please check the Group under Teams to see if the guest user really exists.
Further, I have searched reference docs on Microsoft Teams guest user for your reference:
Join us for the first ever Power Platform Online Conference!
Keep your eyes open for our upcoming T-shirt design contest!
Look out for new contribution recognition badges coming SOON!
We've updated and improved the layout and uploading format of the Power Automate Cookbook!
Fill out a quick form to claim your user group badge now!
Find out where you can attend!