1 2 3 4 5 6 7 8 9 10 11 12 13 | Install-Module AzureAD Import-Module AzureAD Connect-AzureAD $userName = 'Sanjiv Kumar' $messageInfo = New-Object Microsoft.Open.MSGraph.Model.InvitedUserMessageInfo $messageInfo.customizedMessageBody = "Hi " + $userName +", Welcome to Testing Single Sign on Solution – the link enclosed on this email will allow you to access Testing Corporate Applications" New-AzureADMSInvitation -InvitedUserDisplayName 'Sanjiv kumar' -InvitedUserEmailAddress sanjiv.kumar@test.com -InvitedUserMessageInfo $messageInfo -InviteRedirectURL https://domainname.sharepoint.com/SitePages/Home.aspx -SendInvitationMessage $True |
Thursday, March 26, 2020
Office 365 B2B guest account creation with custom mail message
Subscribe to:
Post Comments (Atom)
HTML
Script:
No comments:
Post a Comment