With powershell add a guest user to my tenant AND a group...

Copper Contributor

When you add a guest user to a tenan via Azure Active Directory GUI you have the option to add Groups and roles. 

When you invite a user, it first sends an invitation email where the user have to accept the tenants policy. After the user have done that another email is sent with the group invite. So the user doesnt get both email at the same time...

 

How do i do this with powershell? 

 

Have only found this: 
New-AzureADMSInvitation -InvitedUserDisplayName "Sanda" -InvitedUserEmailAddress sanda@fabrikam.com -InviteRedirectURL https://myapps.microsoft.com -SendInvitationMessage $true

 

0 Replies