How to automatically add guests as team members.

tarou chabi 731 Reputation points

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".

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,261 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,868 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,887 questions
{count} votes