question

LanfranchiSandroB2BINAPJCTBD-5759 avatar image
0 Votes"
LanfranchiSandroB2BINAPJCTBD-5759 asked saldana-msft edited

Graph API Beta unifiedRoleManagementPolicyNotificationRule resource type

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

Used configuration:
https://docs.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-graph-identitymicrosoft-graph-data-connect
image.png (22.9 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

LanfranchiSandroB2BINAPJCTBD-5759 avatar image
0 Votes"
LanfranchiSandroB2BINAPJCTBD-5759 answered

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.)

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.