Skip to main content

acceptances

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

Overview

Nameacceptances
TypeResource
Identra_id.agreements.acceptances

Fields

The following fields are returned by SELECT queries:

Retrieved navigation property

NameDatatypeDescription
idstringThe unique identifier for an entity. Read-only.
agreementFileIdstringThe identifier of the agreement file accepted by the user.
agreementIdstringThe identifier of the agreement.
deviceDisplayNamestringThe display name of the device used for accepting the agreement.
deviceIdstringThe unique identifier of the device used for accepting the agreement. Supports $filter (eq) and eq for null values.
deviceOSTypestringThe operating system used to accept the agreement.
deviceOSVersionstringThe operating system version of the device used to accept the agreement.
expirationDateTimestring (date-time)The expiration date time of the acceptance. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Supports $filter (eq, ge, le) and eq for null values. (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])$)
recordedDateTimestring (date-time)The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. (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])$)
statestringThe state of the agreement acceptance. The possible values are: accepted, declined. Supports $filter (eq). (accepted, declined, unknownFutureValue) (title: agreementAcceptanceState)
userDisplayNamestringDisplay name of the user when the acceptance was recorded.
userEmailstringEmail of the user when the acceptance was recorded.
userIdstringThe identifier of the user who accepted the agreement. Supports $filter (eq).
userPrincipalNamestringUPN of the user when the acceptance was recorded.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectagreement_id, agreement_acceptance_idRead-only. Information about acceptances of this agreement.
listselectagreement_idRead-only. Information about acceptances of this agreement.
insertinsertagreement_id
updateupdateagreement_id, agreement_acceptance_id
deletedeleteagreement_id, agreement_acceptance_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
agreement_acceptance_idstringThe unique identifier of agreementAcceptance
agreement_idstringThe unique identifier of agreement
If-MatchstringETag

SELECT examples

Read-only. Information about acceptances of this agreement.

SELECT
id,
agreementFileId,
agreementId,
deviceDisplayName,
deviceId,
deviceOSType,
deviceOSVersion,
expirationDateTime,
recordedDateTime,
state,
userDisplayName,
userEmail,
userId,
userPrincipalName
FROM entra_id.agreements.acceptances
WHERE agreement_id = '{{ agreement_id }}' -- required
AND agreement_acceptance_id = '{{ agreement_acceptance_id }}' -- required
;

INSERT examples

No description available.

INSERT INTO entra_id.agreements.acceptances (
id,
agreementFileId,
agreementId,
deviceDisplayName,
deviceId,
deviceOSType,
deviceOSVersion,
expirationDateTime,
recordedDateTime,
state,
userDisplayName,
userEmail,
userId,
userPrincipalName,
agreement_id
)
SELECT
'{{ id }}',
'{{ agreementFileId }}',
'{{ agreementId }}',
'{{ deviceDisplayName }}',
'{{ deviceId }}',
'{{ deviceOSType }}',
'{{ deviceOSVersion }}',
'{{ expirationDateTime }}',
'{{ recordedDateTime }}',
'{{ state }}',
'{{ userDisplayName }}',
'{{ userEmail }}',
'{{ userId }}',
'{{ userPrincipalName }}',
'{{ agreement_id }}'
RETURNING
id,
agreementFileId,
agreementId,
deviceDisplayName,
deviceId,
deviceOSType,
deviceOSVersion,
expirationDateTime,
recordedDateTime,
state,
userDisplayName,
userEmail,
userId,
userPrincipalName
;

UPDATE examples

No description available.

UPDATE entra_id.agreements.acceptances
SET
id = '{{ id }}',
agreementFileId = '{{ agreementFileId }}',
agreementId = '{{ agreementId }}',
deviceDisplayName = '{{ deviceDisplayName }}',
deviceId = '{{ deviceId }}',
deviceOSType = '{{ deviceOSType }}',
deviceOSVersion = '{{ deviceOSVersion }}',
expirationDateTime = '{{ expirationDateTime }}',
recordedDateTime = '{{ recordedDateTime }}',
state = '{{ state }}',
userDisplayName = '{{ userDisplayName }}',
userEmail = '{{ userEmail }}',
userId = '{{ userId }}',
userPrincipalName = '{{ userPrincipalName }}'
WHERE
agreement_id = '{{ agreement_id }}' --required
AND agreement_acceptance_id = '{{ agreement_acceptance_id }}' --required
RETURNING
id,
agreementFileId,
agreementId,
deviceDisplayName,
deviceId,
deviceOSType,
deviceOSVersion,
expirationDateTime,
recordedDateTime,
state,
userDisplayName,
userEmail,
userId,
userPrincipalName;

DELETE examples

No description available.

DELETE FROM entra_id.agreements.acceptances
WHERE agreement_id = '{{ agreement_id }}' --required
AND agreement_acceptance_id = '{{ agreement_acceptance_id }}' --required
AND If-Match = '{{ If-Match }}'
;