Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I can't add guest member of team by "New-MgTeamMember".
Using application permissions to add guest members to a team is not supported.
So, I want to add guest by Add-TeamUser.
Should I use MSAL.PS? Please teach me "how to automatically add guests as team members".
How are your teams set up right now? Do you manually add people or are they dynamic user groups? Are you looking to create new Microsoft Teams specifically for your guests/users to interact?
Thank you for your reply.
Now I manually run ps1(contains conditions).
Connect-AzureAD and New-AzureADMSInvitation
Connect-MicrosoftTeams and New-Team and Add-TeamUser
Thanks for visiting our forum. Our forum focuses on Microsoft Teams, which is the hub for team collaboration in Office 365.
Based on your description, this problem is related to Teams script development, which we do not support. So we will add office-teams-app-dev tag to your thread. Thanks for your understanding and patience!
Manage Teams with rules set for dynamic members groups. When user attributes change or users join and leave the tenant, users are automatically added or removed from the correct teams.