Open stottler opened 5 months ago
still no luck with CC'ing
I've had the same issue and raised the issue elsewhere, but finally cracked it. Your hash table is not quite correct for invitedUserMessageInfo. I also had to use the beta module New-MgBetaInvitation, but below should help you.
$InvitedUserMessageInfo = @{
CustomizedMessageBody = "Welcome!"
ccRecipients = @(
@{
emailAddress = @{
address = "user@ccaddress.com"
}
}
)
}
New-MgInvitation -InvitedUserDisplayName "User" -InvitedUserEmailAddress "user@logonaddress.com" -InviteRedirectUrl "https://myapplications.microsoft.com" -InvitedUserMessageInfo $InvitedUserMessageInfo -SendInvitationMessage -Debug
@sebastienlevert examples need to be enriched i.e. Fusing imported examples from the API reference docswith hand-written examples. cc: @SteveMutungi254
Having the docs be updated would be great, thanks.
Describe the bug I am unable to send a CC email for a new invited user in EntraID.
To Reproduce Steps to reproduce the behavior:
Expected behavior I'm expecting to see an invite drop into my cc'd inbox but it's not. Debug isn't showing one either.
Debug Output
Module Version
Environment Data
Additional context I'm trying to automate created external users in our EntraID. I have a json file as the input (this part has been figured out).