Skip to main content

delegated_admin_relationships

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

Overview

Namedelegated_admin_relationships
TypeResource
Identra_id.tenant_relationships.delegated_admin_relationships

Fields

The following fields are returned by SELECT queries:

Retrieved navigation property

NameDatatypeDescription
idstringThe unique identifier for an entity. Read-only.
accessAssignmentsarrayThe access assignments associated with the delegated admin relationship.
accessDetailsobject (title: delegatedAdminAccessDetails)
activatedDateTimestring (date-time)The date and time in ISO 8601 format and in UTC time when the relationship became active. Read-only. (pattern: ^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$)
autoExtendDurationstring (duration)The duration by which the validity of the relationship is automatically extended, denoted in ISO 8601 format. Supported values are: P0D, PT0S, P180D. The default value is PT0S. PT0S indicates that the relationship expires when the endDateTime is reached and it isn't automatically extended. (pattern: ^-?P([0-9]+D)?(T([0-9]+H)?([0-9]+M)?([0-9]+([.][0-9]+)?S)?)?$)
createdDateTimestring (date-time)The date and time in ISO 8601 format and in UTC time when the relationship was created. Read-only. (pattern: ^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$)
customerThe display name and unique identifier of the customer of the relationship. This is configured either by the partner at the time the relationship is created or by the system after the customer approves the relationship. Can't be changed by the customer.
displayNamestringThe display name of the relationship used for ease of identification. Must be unique across all delegated admin relationships of the partner and is set by the partner only when the relationship is in the created status and can't be changed by the customer. Maximum length is 50 characters.
durationstring (duration)The duration of the relationship in ISO 8601 format. Must be a value between P1D and P2Y inclusive. This is set by the partner only when the relationship is in the created status and can't be changed by the customer. (pattern: ^-?P([0-9]+D)?(T([0-9]+H)?([0-9]+M)?([0-9]+([.][0-9]+)?S)?)?$)
endDateTimestring (date-time)The date and time in ISO 8601 format and in UTC time when the status of relationship changes to either terminated or expired. Calculated as endDateTime = activatedDateTime + duration. Read-only. (pattern: ^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$)
lastModifiedDateTimestring (date-time)The date and time in ISO 8601 format and in UTC time when the relationship was last modified. Read-only. (pattern: ^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$)
operationsarrayThe long running operations associated with the delegated admin relationship.
requestsarrayThe requests associated with the delegated admin relationship.
statusThe status of the relationship. Read Only. The possible values are: activating, active, approvalPending, approved, created, expired, expiring, terminated, terminating, terminationRequested, unknownFutureValue. Supports $orderby.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectdelegated_admin_relationship_idRead the properties of a delegatedAdminRelationship object.
listselectGet a list of the delegatedAdminRelationship objects and their properties.
insertinsertCreate a new delegatedAdminRelationship object.
updateupdatedelegated_admin_relationship_idUpdate the properties of a delegatedAdminRelationship object. The following restrictions apply:
- You can update this relationship when its status property is created.
- You can update the autoExtendDuration property when status is either created or active.
- You can only remove the Microsoft Entra Global Administrator role when the status property is active, which indicates a long-running operation.
deletedeletedelegated_admin_relationship_idIf-MatchDelete a delegatedAdminRelationship object. A relationship can only be deleted if it's in the 'created' status.

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
delegated_admin_relationship_idstringThe unique identifier of delegatedAdminRelationship
If-MatchstringETag

SELECT examples

Read the properties of a delegatedAdminRelationship object.

SELECT
id,
accessAssignments,
accessDetails,
activatedDateTime,
autoExtendDuration,
createdDateTime,
customer,
displayName,
duration,
endDateTime,
lastModifiedDateTime,
operations,
requests,
status
FROM entra_id.tenant_relationships.delegated_admin_relationships
WHERE delegated_admin_relationship_id = '{{ delegated_admin_relationship_id }}' -- required
;

INSERT examples

Create a new delegatedAdminRelationship object.

INSERT INTO entra_id.tenant_relationships.delegated_admin_relationships (
id,
accessDetails,
activatedDateTime,
autoExtendDuration,
createdDateTime,
customer,
displayName,
duration,
endDateTime,
lastModifiedDateTime,
status,
accessAssignments,
operations,
requests
)
SELECT
'{{ id }}',
'{{ accessDetails }}',
'{{ activatedDateTime }}',
'{{ autoExtendDuration }}',
'{{ createdDateTime }}',
'{{ customer }}',
'{{ displayName }}',
'{{ duration }}',
'{{ endDateTime }}',
'{{ lastModifiedDateTime }}',
'{{ status }}',
'{{ accessAssignments }}',
'{{ operations }}',
'{{ requests }}'
RETURNING
id,
accessAssignments,
accessDetails,
activatedDateTime,
autoExtendDuration,
createdDateTime,
customer,
displayName,
duration,
endDateTime,
lastModifiedDateTime,
operations,
requests,
status
;

UPDATE examples

Update the properties of a delegatedAdminRelationship object. The following restrictions apply:
- You can update this relationship when its status property is created.
- You can update the autoExtendDuration property when status is either created or active.
- You can only remove the Microsoft Entra Global Administrator role when the status property is active, which indicates a long-running operation.

UPDATE entra_id.tenant_relationships.delegated_admin_relationships
SET
id = '{{ id }}',
accessDetails = '{{ accessDetails }}',
activatedDateTime = '{{ activatedDateTime }}',
autoExtendDuration = '{{ autoExtendDuration }}',
createdDateTime = '{{ createdDateTime }}',
customer = '{{ customer }}',
displayName = '{{ displayName }}',
duration = '{{ duration }}',
endDateTime = '{{ endDateTime }}',
lastModifiedDateTime = '{{ lastModifiedDateTime }}',
status = '{{ status }}',
accessAssignments = '{{ accessAssignments }}',
operations = '{{ operations }}',
requests = '{{ requests }}'
WHERE
delegated_admin_relationship_id = '{{ delegated_admin_relationship_id }}' --required
RETURNING
id,
accessAssignments,
accessDetails,
activatedDateTime,
autoExtendDuration,
createdDateTime,
customer,
displayName,
duration,
endDateTime,
lastModifiedDateTime,
operations,
requests,
status;

DELETE examples

Delete a delegatedAdminRelationship object. A relationship can only be deleted if it's in the 'created' status.

DELETE FROM entra_id.tenant_relationships.delegated_admin_relationships
WHERE delegated_admin_relationship_id = '{{ delegated_admin_relationship_id }}' --required
AND If-Match = '{{ If-Match }}'
;