Skip to main content

sponsors

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

Overview

Namesponsors
TypeResource
Identra_id.users.sponsors

Fields

The following fields are returned by SELECT queries:

Retrieved collection

NameDatatypeDescription
idstringThe unique identifier for an entity. Read-only.
deletedDateTimestring (date-time)Date and time when this object was deleted. Always null when the object hasn't been deleted. (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])$)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectuser_idGet an agentUser's sponsors. Sponsors are users and groups that are responsible for this agent user's privileges in the tenant and for keeping the agent user's information and access up to date.
add_refinsertuser_idAssign an agentUser a sponsor. Sponsors are users and groups that are responsible for this agent user's privileges in the tenant and for keeping the agent user's information and access up to date.
remove_refdeleteuser_id, directory_object_idIf-MatchRemove an agentUser's sponsor.
remove_ref_2deleteuser_idIf-MatchRemove an agentUser's sponsor.

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
directory_object_idstringThe unique identifier of directoryObject
user_idstringThe unique identifier of user
If-MatchstringETag

SELECT examples

Get an agentUser's sponsors. Sponsors are users and groups that are responsible for this agent user's privileges in the tenant and for keeping the agent user's information and access up to date.

SELECT
id,
deletedDateTime
FROM entra_id.users.sponsors
WHERE user_id = '{{ user_id }}' -- required
;

INSERT examples

Assign an agentUser a sponsor. Sponsors are users and groups that are responsible for this agent user's privileges in the tenant and for keeping the agent user's information and access up to date.

INSERT INTO entra_id.users.sponsors (
directoryObjectId,
user_id
)
SELECT
'{{ directoryObjectId }}',
'{{ user_id }}'
;

DELETE examples

Remove an agentUser's sponsor.

DELETE FROM entra_id.users.sponsors
WHERE user_id = '{{ user_id }}' --required
AND directory_object_id = '{{ directory_object_id }}' --required
AND If-Match = '{{ If-Match }}'
;