Skip to main content

entitlement_management_role_assignments

Creates, updates, deletes, gets or lists an entitlement_management_role_assignments resource.

Overview

Nameentitlement_management_role_assignments
TypeResource
Identra_id.role_management.entitlement_management_role_assignments

Fields

The following fields are returned by SELECT queries:

Retrieved navigation property

NameDatatypeDescription
idstringThe unique identifier for an entity. Read-only.
appScopeRead-only property with details of the app specific scope when the assignment scope is app specific. Containment entity. Supports $expand for the entitlement provider only.
appScopeIdstringIdentifier of the app specific scope when the assignment scope is app specific. The scope of an assignment determines the set of resources for which the principal has been granted access. App scopes are scopes that are defined and understood by a resource application only. For the entitlement management provider, use this property to specify a catalog. For example, /AccessPackageCatalog/beedadfe-01d5-4025-910b-84abb9369997. Supports $filter (eq, in). For example, /roleManagement/entitlementManagement/roleAssignments?$filter=appScopeId eq '/AccessPackageCatalog/{catalog id}'.
conditionstring
directoryScopeThe directory object that is the scope of the assignment. Read-only. Supports $expand for the directory provider.
directoryScopeIdstringIdentifier of the directory object representing the scope of the assignment. The scope of an assignment determines the set of resources for which the principal has been granted access. Directory scopes are shared scopes stored in the directory that are understood by multiple applications, unlike app scopes that are defined and understood by a resource application only. Supports $filter (eq, in).
principalReferencing the assigned principal. Read-only. Supports $expand except for the Exchange provider.
principalIdstringIdentifier of the principal to which the assignment is granted. Supported principals are users, role-assignable groups, and service principals. Supports $filter (eq, in).
roleDefinitionThe roleDefinition the assignment is for. Supports $expand.
roleDefinitionIdstringIdentifier of the unifiedRoleDefinition the assignment is for. Read-only. Supports $filter (eq, in).

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectunified_role_assignment_idResource to grant access to users or groups.
listselectGet a list of unifiedRoleAssignment objects for the RBAC provider. The following RBAC providers are currently supported:
- directory (Microsoft Entra ID)
- entitlement management (Microsoft Entra entitlement management)
insertinsertCreate a new unifiedRoleAssignment object.
updateupdateunified_role_assignment_id
deletedeleteunified_role_assignment_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_assignment_idstringThe unique identifier of unifiedRoleAssignment
If-MatchstringETag

SELECT examples

Resource to grant access to users or groups.

SELECT
id,
appScope,
appScopeId,
condition,
directoryScope,
directoryScopeId,
principal,
principalId,
roleDefinition,
roleDefinitionId
FROM entra_id.role_management.entitlement_management_role_assignments
WHERE unified_role_assignment_id = '{{ unified_role_assignment_id }}' -- required
;

INSERT examples

Create a new unifiedRoleAssignment object.

INSERT INTO entra_id.role_management.entitlement_management_role_assignments (
id,
appScopeId,
condition,
directoryScopeId,
principalId,
roleDefinitionId,
appScope,
directoryScope,
principal,
roleDefinition
)
SELECT
'{{ id }}',
'{{ appScopeId }}',
'{{ condition }}',
'{{ directoryScopeId }}',
'{{ principalId }}',
'{{ roleDefinitionId }}',
'{{ appScope }}',
'{{ directoryScope }}',
'{{ principal }}',
'{{ roleDefinition }}'
RETURNING
id,
appScope,
appScopeId,
condition,
directoryScope,
directoryScopeId,
principal,
principalId,
roleDefinition,
roleDefinitionId
;

UPDATE examples

No description available.

UPDATE entra_id.role_management.entitlement_management_role_assignments
SET
id = '{{ id }}',
appScopeId = '{{ appScopeId }}',
condition = '{{ condition }}',
directoryScopeId = '{{ directoryScopeId }}',
principalId = '{{ principalId }}',
roleDefinitionId = '{{ roleDefinitionId }}',
appScope = '{{ appScope }}',
directoryScope = '{{ directoryScope }}',
principal = '{{ principal }}',
roleDefinition = '{{ roleDefinition }}'
WHERE
unified_role_assignment_id = '{{ unified_role_assignment_id }}' --required
RETURNING
id,
appScope,
appScopeId,
condition,
directoryScope,
directoryScopeId,
principal,
principalId,
roleDefinition,
roleDefinitionId;

DELETE examples

No description available.

DELETE FROM entra_id.role_management.entitlement_management_role_assignments
WHERE unified_role_assignment_id = '{{ unified_role_assignment_id }}' --required
AND If-Match = '{{ If-Match }}'
;