I have the same issue to configure AdditionalNotificationRecipients.
Trying to use New-MgIdentityGovernanceAccessReviewDefinition and need to know the correct way to use AdditionalNotificationRecipients in -BodyParameter
I'm using New-MgIdentityGovernanceAccessReviewDefinition to create Access Reviews. All properties are defined in @param block and using -BodyParameter. I'm trying to use AdditionalNotificationRecipients but when I check the Access Review after executing all config for review stages and schedule etc is correct except for "At end of review, send notification to" which remains unset.
I've tried a few variations for defining AdditionalNotificationRecipients settings based on other properties which set correctly and the documentation but unable to get this to work. Never receive an error, just doesn't set.
################################################################################################
AdditionalNotificationRecipients = @(
@{
NotificationRecipientScope = @(
@{
query = "/users/97686923-373b-4418-81d4-1d34b24d4497"
queryType = "MicrosoftGraph"
}
)
NotificationTemplateType = "CompletedAdditionalRecipients"
}
################################################################################################
AdditionalNotificationRecipients = @{
NotificationRecipientScope = "******@domain.com"
NotificationTemplateType = "CompletedAdditionalRecipients"
}
################################################################################################
AdditionalNotificationRecipients = @(
@{
NotificationRecipientScope = "******@domain.com"
NotificationTemplateType = "CompletedAdditionalRecipients"
}
)
################################################################################################
Can you confirm the correct usage of this please?
BODYPARAMETER <IMicrosoftGraphAccessReviewScheduleDefinition>
: accessReviewScheduleDefinition
-
[(Any) <Object>]
: This indicates any property can be added to this object. -
[Id <String>]
: The unique identifier for an entity. Read-only. -
[AdditionalNotificationRecipients <IMicrosoftGraphAccessReviewNotificationRecipientItem[]>]
: Defines the list of additional users or group members to be notified of the access review progress. -
[NotificationRecipientScope <IMicrosoftGraphAccessReviewNotificationRecipientScope>]
: accessReviewNotificationRecipientScope -
[(Any) <Object>]
: This indicates any property can be added to this object. -
[NotificationTemplateType <String>]
: Indicates the type of access review email to be sent. Supported template type is CompletedAdditionalRecipients, which sends review completion notifications to the recipients.
Thanks
James
1 answer
Sort by: Most helpful
-
flatexDEGIRO Koberstein, Bernd 0 Reputation points
2025-03-07T15:55:48.8766667+00:00