cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Rajesh
Level: Powered On

Creating team and adding members using graph API

Hi

 

I'm using graph API to create a team and add team members. The team creation and adding members work fine. However the welcome email that "You have been added to a team" which the Microsoft Teams sends does not go out in this case. I've seen the same behaviour when I create the team using PowerShell and then use Add-TeamUser to add members. If I try adding a new member to the same team through UI, then it does send the mail. Is it a known issue when doing through PowerShell/API?

Here's the graph api link I followed for adding members

https://docs.microsoft.com/en-us/graph/api/group-post-members?view=graph-rest-1.0

 

Thanks

3 REPLIES 3
Community Support Team
Community Support Team

Re: Creating team and adding members using graph API

Hi @Rajesh ,

 

It seems that this is the default setting, even if I use Add member to group action to add the specified user to Teams group, no email notification is generated.

35.PNG

Perhaps you could try to configure Send email action directly to notify the user who has been added to the specified group.

 

In addition, for sending email notification after adding members to the specified group using PowerShell, please check this discussion and see if it helps:

https://techcommunity.microsoft.com/t5/Office-365/Add-Office365-Group-Member-without-Email-Notificat...

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Rajesh
Level: Powered On

Re: Creating team and adding members using graph API

Thanks for your reply. If I try adding a new member to the team through the Team Apps UI, then it does send the mail. I don't think it has to do with setting UnifiedGroupWelcomeMessageEnabled which I believe is enabled. It's only when we do the same through PowerShell or flow

Community Support Team
Community Support Team

Re: Creating team and adding members using graph API

Hi @Rajesh ,

 

This seems to be the default setting. If you want to add a member to the specified Teams group via Flow to send a similar email, please consider submitting your suggestion in the idea forum:

https://powerusers.microsoft.com/t5/Flow-Ideas/idb-p/FlowIdeas

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors
Users online (5,317)