how to create a team without sending out the default "you have been added to team..." mail message?

%3CLINGO-SUB%20id%3D%22lingo-sub-1098324%22%20slang%3D%22en-US%22%3Ehow%20to%20create%20a%20team%20without%20sending%20out%20the%20default%20%22you%20have%20been%20added%20to%20team...%22%20mail%20message%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1098324%22%20slang%3D%22en-US%22%3E%3CP%3EHi%3C%2FP%3E%3CP%3EI%20am%20almost%20finished%20with%20my%20provisioning%20web-part%20for%20creating%20groups%20with%20teams%20using%20graph%2C%20but%26nbsp%3B%20the%20customer%20want%20the%20%22provisioneer%22%20to%20be%20able%20to%20refrain%20from%20sending%20out%20%22you've%20been%20added%22%20messages%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20cannot%20seem%20to%20find%20if%20it's%20possible%20in%20the%20documentation%2C%20but%20then%20again%20it%20doesn't%20always%20have%20it%20all%20written%20down.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDo%20some%20of%20you%20know%20if%20it's%20possible%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethnx%2C%20O%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1098324%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESettings%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1098375%22%20slang%3D%22en-US%22%3ERe%3A%20how%20to%20create%20a%20team%20without%20sending%20out%20the%20default%20%22you%20have%20been%20added%20to%20team...%22%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1098375%22%20slang%3D%22en-US%22%3ETry%20this%3A%3CBR%20%2F%3E%3CBR%20%2F%3ERun%20the%20powershell%20command%20with%20the%20exchange%20module%20connected%3A%3CBR%20%2F%3E%3CBR%20%2F%3ESet-UnifiedGroup%20%3CGROUPNAME%3E%20-UnifiedGroupWelcomeMessageEnabled%3A%24%3CTRUE%3E%3CBR%20%2F%3E%3CBR%20%2F%3EThen%20try%20add%20the%20members%20to%20the%20group%20via%20AAD%20or%20admin%20portal.%3CBR%20%2F%3E%3CBR%20%2F%3EKeep%20in%20mind%20that%20users%20won%E2%80%99t%20show%20up%20immediately%20as%20members%20in%20Teams%20due%20to%20latency%3CBR%20%2F%3E%3CBR%20%2F%3EAdam%3C%2FTRUE%3E%3C%2FGROUPNAME%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1100677%22%20slang%3D%22en-US%22%3ERe%3A%20how%20to%20create%20a%20team%20without%20sending%20out%20the%20default%20%22you%20have%20been%20added%20to%20team...%22%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1100677%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F511638%22%20target%3D%22_blank%22%3E%40trillian74%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22box-sizing%3A%20border-box%3B%20color%3A%20%23333333%3B%20font-family%3A%20%26amp%3Bquot%3B%20segoeui%26amp%3Bquot%3B%2C%26amp%3Bquot%3Blato%26amp%3Bquot%3B%2C%26amp%3Bquot%3Bhelvetica%20neue%26amp%3Bquot%3B%2Chelvetica%2Carial%2Csans-serif%3B%20font-size%3A%2016px%3B%20font-style%3A%20normal%3B%20font-variant%3A%20normal%3B%20font-weight%3A%20300%3B%20letter-spacing%3A%20normal%3B%20orphans%3A%202%3B%20text-align%3A%20left%3B%20text-decoration%3A%20none%3B%20text-indent%3A%200px%3B%20text-transform%3A%20none%3B%20-webkit-text-stroke-width%3A%200px%3B%20white-space%3A%20normal%3B%20word-spacing%3A%200px%3B%20margin%3A%200px%3B%22%3EYou%20can%20do%20that%20with%20Microsoft%20Graph%20only%20at%20creation%20time.%20Here%20is%20a%20sample%3C%2FP%3E%0A%3CP%20style%3D%22box-sizing%3A%20border-box%3B%20color%3A%20%23333333%3B%20font-family%3A%20%26amp%3Bquot%3B%20segoeui%26amp%3Bquot%3B%2C%26amp%3Bquot%3Blato%26amp%3Bquot%3B%2C%26amp%3Bquot%3Bhelvetica%20neue%26amp%3Bquot%3B%2Chelvetica%2Carial%2Csans-serif%3B%20font-size%3A%2016px%3B%20font-style%3A%20normal%3B%20font-variant%3A%20normal%3B%20font-weight%3A%20300%3B%20letter-spacing%3A%20normal%3B%20orphans%3A%202%3B%20text-align%3A%20left%3B%20text-decoration%3A%20none%3B%20text-indent%3A%200px%3B%20text-transform%3A%20none%3B%20-webkit-text-stroke-width%3A%200px%3B%20white-space%3A%20normal%3B%20word-spacing%3A%200px%3B%20margin%3A%200px%3B%22%3EUrl%3A%26nbsp%3B%3CA%20style%3D%22background-color%3A%20transparent%3B%20box-sizing%3A%20border-box%3B%20color%3A%20%230077d4%3B%20text-decoration%3A%20underline%3B%22%20href%3D%22https%3A%2F%2Fgraph.microsoft.com%2Fv1.0%2Fgroups%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgraph.microsoft.com%2Fv1.0%2Fgroups%3C%2FA%3E%3C%2FP%3E%0A%3CP%20style%3D%22box-sizing%3A%20border-box%3B%20color%3A%20%23333333%3B%20font-family%3A%20%26amp%3Bquot%3B%20segoeui%26amp%3Bquot%3B%2C%26amp%3Bquot%3Blato%26amp%3Bquot%3B%2C%26amp%3Bquot%3Bhelvetica%20neue%26amp%3Bquot%3B%2Chelvetica%2Carial%2Csans-serif%3B%20font-size%3A%2016px%3B%20font-style%3A%20normal%3B%20font-variant%3A%20normal%3B%20font-weight%3A%20300%3B%20letter-spacing%3A%20normal%3B%20orphans%3A%202%3B%20text-align%3A%20left%3B%20text-decoration%3A%20none%3B%20text-indent%3A%200px%3B%20text-transform%3A%20none%3B%20-webkit-text-stroke-width%3A%200px%3B%20white-space%3A%20normal%3B%20word-spacing%3A%200px%3B%20margin%3A%200px%3B%22%3ERequest%20Body%3A%3C%2FP%3E%0A%3CP%20style%3D%22box-sizing%3A%20border-box%3B%20color%3A%20%23333333%3B%20font-family%3A%20%26amp%3Bquot%3B%20segoeui%26amp%3Bquot%3B%2C%26amp%3Bquot%3Blato%26amp%3Bquot%3B%2C%26amp%3Bquot%3Bhelvetica%20neue%26amp%3Bquot%3B%2Chelvetica%2Carial%2Csans-serif%3B%20font-size%3A%2016px%3B%20font-style%3A%20normal%3B%20font-variant%3A%20normal%3B%20font-weight%3A%20300%3B%20letter-spacing%3A%20normal%3B%20orphans%3A%202%3B%20text-align%3A%20left%3B%20text-decoration%3A%20none%3B%20text-indent%3A%200px%3B%20text-transform%3A%20none%3B%20-webkit-text-stroke-width%3A%200px%3B%20white-space%3A%20normal%3B%20word-spacing%3A%200px%3B%20margin%3A%200px%3B%22%3E--%3C%2FP%3E%0A%3CP%20style%3D%22box-sizing%3A%20border-box%3B%20color%3A%20%23333333%3B%20font-family%3A%20%26amp%3Bquot%3B%20segoeui%26amp%3Bquot%3B%2C%26amp%3Bquot%3Blato%26amp%3Bquot%3B%2C%26amp%3Bquot%3Bhelvetica%20neue%26amp%3Bquot%3B%2Chelvetica%2Carial%2Csans-serif%3B%20font-size%3A%2016px%3B%20font-style%3A%20normal%3B%20font-variant%3A%20normal%3B%20font-weight%3A%20300%3B%20letter-spacing%3A%20normal%3B%20orphans%3A%202%3B%20text-align%3A%20left%3B%20text-decoration%3A%20none%3B%20text-indent%3A%200px%3B%20text-transform%3A%20none%3B%20-webkit-text-stroke-width%3A%200px%3B%20white-space%3A%20normal%3B%20word-spacing%3A%200px%3B%20margin%3A%200px%3B%22%3E%7B%3CBR%20style%3D%22box-sizing%3A%20border-box%3B%22%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%22displayName%22%3A%20%22TestGroup-01%22%2C%3CBR%20style%3D%22box-sizing%3A%20border-box%3B%22%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%22groupTypes%22%3A%20%5B%3CBR%20style%3D%22box-sizing%3A%20border-box%3B%22%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%22Unified%22%3CBR%20style%3D%22box-sizing%3A%20border-box%3B%22%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%5D%2C%3CBR%20style%3D%22box-sizing%3A%20border-box%3B%22%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%22mailEnabled%22%3A%20true%2C%3CBR%20style%3D%22box-sizing%3A%20border-box%3B%22%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%22mailNickname%22%3A%20%22testgroup-01%22%2C%3CBR%20style%3D%22box-sizing%3A%20border-box%3B%22%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%22resourceBehaviorOptions%22%3A%20%5B%3CBR%20style%3D%22box-sizing%3A%20border-box%3B%22%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%22WelcomeEmailDisabled%22%3CBR%20style%3D%22box-sizing%3A%20border-box%3B%22%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%5D%2C%3CBR%20style%3D%22box-sizing%3A%20border-box%3B%22%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%22securityEnabled%22%3A%20false%2C%3CBR%20style%3D%22box-sizing%3A%20border-box%3B%22%20%2F%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%22visibility%22%3A%20%22Private%22%2C%3CBR%20style%3D%22box-sizing%3A%20border-box%3B%22%20%2F%3E%7D%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1130966%22%20slang%3D%22en-US%22%3ERe%3A%20how%20to%20create%20a%20team%20without%20sending%20out%20the%20default%20%22you%20have%20been%20added%20to%20team...%22%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1130966%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F511638%22%20target%3D%22_blank%22%3E%40trillian74%3C%2FA%3E%26nbsp%3BHow%20are%20you%20adding%20the%20team%20member%20after%20creating%20the%20team%20with%20WelcomeEMailDisabled%3A%20True%3F%20Are%20you%20adding%20the%20user%20using%20Graph%20API%20or%20from%20the%20Teams%20UI%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

Hi

I am almost finished with my provisioning web-part for creating groups with teams using graph, but  the customer want the "provisioneer" to be able to refrain from sending out "you've been added" messages

 

I cannot seem to find if it's possible in the documentation, but then again it doesn't always have it all written down.

 

Do some of you know if it's possible?

 

thnx, O

4 Replies
Highlighted
Try this:

Run the powershell command with the exchange module connected:

Set-UnifiedGroup <groupname> -UnifiedGroupWelcomeMessageEnabled:$<true/false>

Then try add the members to the group via AAD or admin portal.

Keep in mind that users won’t show up immediately as members in Teams due to latency

Adam
Highlighted

@trillian74 

You can do that with Microsoft Graph only at creation time. Here is a sample

Url: https://graph.microsoft.com/v1.0/groups

Request Body:

--

{
    "displayName": "TestGroup-01",
    "groupTypes": [
        "Unified"
    ],
    "mailEnabled": true,
    "mailNickname": "testgroup-01",
    "resourceBehaviorOptions": [
        "WelcomeEmailDisabled"
    ],
    "securityEnabled": false,
    "visibility": "Private",
}

Highlighted

yes, but that doesn't stop the added to teams mail from being sent out. (?) . It stops the office groups mail from being sent. When i create the team right thereafter they receive a "You've been added to a team in Microsoft Teams" mail. This is the mail i want to switch off  @Gousia_Begum  has the same effect as doing it in powershell.

Highlighted

@trillian74 How are you adding the team member after creating the team with WelcomeEMailDisabled: True? Are you adding the user using Graph API or from the Teams UI?