How to automatically add guests as team members.

tarou chabi 731 Reputation points
2022-08-25T14:55:51.457+00:00

I can't add guest member of team by "New-MgTeamMember".

https://learn.microsoft.com/en-us/graph/api/team-post-members?view=graph-rest-1.0&tabs=http#permissions
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