Share via

Graph API Beta unifiedRoleManagementPolicyNotificationRule resource type

2022-04-22T12:14:18.8+00:00

Using Graph API to update the resource type unifiedRoleManagementPolicyNotificationRule cause the role is not configurable anymore (Webgui or Graph)

Used configuration:
https://learn.microsoft.com/en-us/graph/api/resources/unifiedrolemanagementpolicynotificationrule?view=graph-rest-beta

PATCH https://graph.microsoft.com/beta/policies/roleManagementPolicies/DirectoryRole_1e1b61e9-1bad-4b5f-aca3-973feb8d36e0_e66af413-b1a8-441b-862e-74c733ccdfe8/rules/Notification_Admin_Admin_Eligibility

{
"@odata.type": "#microsoft.graph.unifiedRoleManagementPolicyNotificationRule",
"id": "Notification_Admin_Admin_Eligibility",
"target": {
"@odata.type": "microsoft.graph.unifiedRoleManagementPolicyRuleTarget"
},
"notificationType": "Email",
"recipientType": "Admin",
"notificationLevel": "All",
"isDefaultRecipientsEnabled": true,
"notificationRecipients": []
}

Return code "No Content - 204"
In WebGui the role is as follow:
195583-image.png

Microsoft Security | Microsoft Graph
Community Center | Not monitored
0 comments No comments

1 answer

Sort by: Most helpful
  1. Lanfranchi Sandro, B2B-INA-PJC-TBD 1 Reputation point
    2022-04-22T12:41:27.14+00:00

    After this only following unifiedRoleManagementPolicyRule can be get or patch:
    Notification_Admin_Admin_Eligibility
    Notification_Admin_EndUser_Assignment
    Notification_Admin_Admin_Assignment

    For the other 6 Notification PolicyRule the error is:
    "The policy rule id <unifiedRoleManagementPolicyRule> is invalid." (e.g. The policy rule id Notification_Requestor_Admin_Eligibility is invalid.)

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.