Skip to main content

role_management_policies_rules

Creates, updates, deletes, gets or lists a role_management_policies_rules resource.

Overview

Namerole_management_policies_rules
TypeResource
Identra_id.policies.role_management_policies_rules

Fields

The following fields are returned by SELECT queries:

Retrieved navigation property

NameDatatypeDescription
idstringThe unique identifier for an entity. Read-only.
targetDefines details of scope that's targeted by role management policy rule. The details can include the principal type, the role assignment type, and actions affecting a role. Supports $filter (eq, ne).

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectunified_role_management_policy_id, unified_role_management_policy_rule_idRetrieve a rule or settings defined for a role management policy. The rule can be one of the following types that are derived from the unifiedRoleManagementPolicyRule object:
listselectunified_role_management_policy_idGet the rules or settings defined for a role management policy. The rules are a collection of following types that are derived from the unifiedRoleManagementPolicyRule object:
insertinsertunified_role_management_policy_id
updateupdateunified_role_management_policy_id, unified_role_management_policy_rule_idUpdate a rule defined for a role management policy. The rule can be one of the following types that are derived from the unifiedRoleManagementPolicyRule object: For more information about rules for Microsoft Entra roles and examples of updating rules, see the following articles:
deletedeleteunified_role_management_policy_id, unified_role_management_policy_rule_idIf-Match

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
unified_role_management_policy_idstringThe unique identifier of unifiedRoleManagementPolicy
unified_role_management_policy_rule_idstringThe unique identifier of unifiedRoleManagementPolicyRule
If-MatchstringETag

SELECT examples

Retrieve a rule or settings defined for a role management policy. The rule can be one of the following types that are derived from the unifiedRoleManagementPolicyRule object:

SELECT
id,
target
FROM entra_id.policies.role_management_policies_rules
WHERE unified_role_management_policy_id = '{{ unified_role_management_policy_id }}' -- required
AND unified_role_management_policy_rule_id = '{{ unified_role_management_policy_rule_id }}' -- required
;

INSERT examples

No description available.

INSERT INTO entra_id.policies.role_management_policies_rules (
id,
target,
unified_role_management_policy_id
)
SELECT
'{{ id }}',
'{{ target }}',
'{{ unified_role_management_policy_id }}'
RETURNING
id,
target
;

UPDATE examples

Update a rule defined for a role management policy. The rule can be one of the following types that are derived from the unifiedRoleManagementPolicyRule object: For more information about rules for Microsoft Entra roles and examples of updating rules, see the following articles:

UPDATE entra_id.policies.role_management_policies_rules
SET
id = '{{ id }}',
target = '{{ target }}'
WHERE
unified_role_management_policy_id = '{{ unified_role_management_policy_id }}' --required
AND unified_role_management_policy_rule_id = '{{ unified_role_management_policy_rule_id }}' --required
RETURNING
id,
target;

DELETE examples

No description available.

DELETE FROM entra_id.policies.role_management_policies_rules
WHERE unified_role_management_policy_id = '{{ unified_role_management_policy_id }}' --required
AND unified_role_management_policy_rule_id = '{{ unified_role_management_policy_rule_id }}' --required
AND If-Match = '{{ If-Match }}'
;