Skip to content

Commit 22832db

Browse files
authored
Merge branch 'dev' into 3065-get-mgbetasecurityattacksimulation---404
2 parents 3cfd1dc + cbb75cf commit 22832db

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

src/Identity.SignIns/beta/examples/New-MgBetaInvitation.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,23 @@ New-MgBetaInvitation -BodyParameter $params
3434
```
3535
This example will reset the redemption status of a guest user
3636

37+
### Example 2: Send CC email for a new invited user.
38+
39+
```powershell
40+
41+
Import-Module Microsoft.Graph.Beta.Identity.SignIns
42+
43+
$InvitedUserMessageInfo = @{
44+
CustomizedMessageBody = "Welcome!"
45+
ccRecipients = @(
46+
@{
47+
emailAddress = @{
48+
address = "user@ccaddress.com"
49+
}
50+
}
51+
)
52+
}
53+
54+
New-MgBetaInvitation -InvitedUserDisplayName "User" -InvitedUserEmailAddress "user@logonaddress.com" -InviteRedirectUrl "https://myapplications.microsoft.com" -InvitedUserMessageInfo $InvitedUserMessageInfo -SendInvitationMessage -Debug
55+
```
56+
This example will send cc email to a new invited user

src/Identity.SignIns/v1.0/examples/New-MgInvitation.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,24 @@ Invite a guest user with the following:
2929
- Once the user redeems the invitation, the user will be redirected to https://myapplications.microsoft.com
3030
- The usertype will be set to Member
3131
- SendInvitationMessage is not specified so by default an invitation email will NOT be sent
32+
33+
### Example 2: Send CC email for a new invited user.
34+
35+
```powershell
36+
37+
Import-Module Microsoft.Graph.Identity.SignIns
38+
39+
$InvitedUserMessageInfo = @{
40+
CustomizedMessageBody = "Welcome!"
41+
ccRecipients = @(
42+
@{
43+
emailAddress = @{
44+
address = "user@ccaddress.com"
45+
}
46+
}
47+
)
48+
}
49+
50+
New-MgInvitation -InvitedUserDisplayName "User" -InvitedUserEmailAddress "user@logonaddress.com" -InviteRedirectUrl "https://myapplications.microsoft.com" -InvitedUserMessageInfo $InvitedUserMessageInfo -SendInvitationMessage -Debug
51+
```
52+
This example will send cc email to a new invited user

0 commit comments

Comments
 (0)