Help with MS Teams B2B Invite Command Syntax

0
128
Asked By SunnyDaze32 On

I'm trying to disable the email invite option for Teams that Microsoft announced recently. According to their documentation, to turn off this feature, I need to set the UseB2BInvitesToAddExternalUsers attribute of the TeamsMessagingPolicy to false. However, when I connect to Teams online and check my global messaging policy, this attribute doesn't show up at all. Additionally, whenever I attempt to change its value, I run into syntax errors. Here's the command I thought would work:

`set-csteamsmessagingpolicy -identity global -UseB2BInvitesToAddExternalUsers false`

Is this feature still rolling out, or could there be an issue with the syntax I'm using? I'm curious if anyone else can view the attribute when using `Get-CsTeamsMessagingPolicy` to check current settings.

4 Answers

Answered By NerdyNinja88 On

I didn't see the attribute either when I checked today. It's something I'm keeping an eye on though. I'll let you know if I notice any changes!

Answered By CommentatorX On

I really wish people who downvote questions like this would at least explain why. This is an important change, and I think discussions around sysadmin topics should be welcomed. It seems like there are more downvotes happening lately, likely due to spammy posts. If you check back, your post might end up with more positive votes later!

Answered By DataDiver77 On

You can try a quick command to see the settings: `Get-CSTeamsMessagingPolicy | foreach {$_ | select identity, UseB2BInvitesToAddExternalUsers}`. It shows the global setting and tags with their values. Are you using the right parameter because you wrote `-UseB2BInvitesToAddExternalUsers`? Also, make sure your Teams module is up to date.

Answered By TechSavvy21 On

I just set the UseB2BInvitesToAddExternalUsers flag to **$false** today, and it worked perfectly for me. Make sure to use `Get-CSTeamsMessagingPolicy -identity Global` to see if it's listed there. It’s essential to document this well because if your company needs to enable this feature later, it could be frustrating if people forget about the flag being set.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.