Skip to main content

terms_of_use_agreements

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

Overview

Nameterms_of_use_agreements
TypeResource
Identra_id.identity_governance.terms_of_use_agreements

Fields

The following fields are returned by SELECT queries:

Retrieved navigation property

NameDatatypeDescription
idstringThe unique identifier for an entity. Read-only.
acceptancesarrayRead-only. Information about acceptances of this agreement.
displayNamestringDisplay name of the agreement. The display name is used for internal tracking of the agreement but isn't shown to end users who view the agreement. Supports $filter (eq).
fileDefault PDF linked to this agreement.
filesarrayPDFs linked to this agreement. This property is in the process of being deprecated. Use the file property instead. Supports $expand.
isPerDeviceAcceptanceRequiredbooleanIndicates whether end users are required to accept this agreement on every device that they access it from. The end user is required to register their device in Microsoft Entra ID, if they haven't already done so. Supports $filter (eq).
isViewingBeforeAcceptanceRequiredbooleanIndicates whether the user has to expand the agreement before accepting. Supports $filter (eq).
termsExpirationExpiration schedule and frequency of agreement for all users. Supports $filter (eq).
userReacceptRequiredFrequencystring (duration)The duration after which the user must reaccept the terms of use. The value is represented in ISO 8601 format for durations. Supports $filter (eq). (pattern: ^-?P([0-9]+D)?(T([0-9]+H)?([0-9]+M)?([0-9]+([.][0-9]+)?S)?)?$)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectagreement_idRetrieve the properties and relationships of an agreement object.
listselectRetrieve a list of agreement objects.
insertinsertCreate a new agreement object.
updateupdateagreement_idUpdate the properties of an agreement object.
deletedeleteagreement_idIf-MatchDelete an agreement object.

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_idstringThe unique identifier of agreement
If-MatchstringETag

SELECT examples

Retrieve the properties and relationships of an agreement object.

SELECT
id,
acceptances,
displayName,
file,
files,
isPerDeviceAcceptanceRequired,
isViewingBeforeAcceptanceRequired,
termsExpiration,
userReacceptRequiredFrequency
FROM entra_id.identity_governance.terms_of_use_agreements
WHERE agreement_id = '{{ agreement_id }}' -- required
;

INSERT examples

Create a new agreement object.

INSERT INTO entra_id.identity_governance.terms_of_use_agreements (
id,
displayName,
isPerDeviceAcceptanceRequired,
isViewingBeforeAcceptanceRequired,
termsExpiration,
userReacceptRequiredFrequency,
acceptances,
file,
files
)
SELECT
'{{ id }}',
'{{ displayName }}',
{{ isPerDeviceAcceptanceRequired }},
{{ isViewingBeforeAcceptanceRequired }},
'{{ termsExpiration }}',
'{{ userReacceptRequiredFrequency }}',
'{{ acceptances }}',
'{{ file }}',
'{{ files }}'
RETURNING
id,
acceptances,
displayName,
file,
files,
isPerDeviceAcceptanceRequired,
isViewingBeforeAcceptanceRequired,
termsExpiration,
userReacceptRequiredFrequency
;

UPDATE examples

Update the properties of an agreement object.

UPDATE entra_id.identity_governance.terms_of_use_agreements
SET
id = '{{ id }}',
displayName = '{{ displayName }}',
isPerDeviceAcceptanceRequired = {{ isPerDeviceAcceptanceRequired }},
isViewingBeforeAcceptanceRequired = {{ isViewingBeforeAcceptanceRequired }},
termsExpiration = '{{ termsExpiration }}',
userReacceptRequiredFrequency = '{{ userReacceptRequiredFrequency }}',
acceptances = '{{ acceptances }}',
file = '{{ file }}',
files = '{{ files }}'
WHERE
agreement_id = '{{ agreement_id }}' --required
RETURNING
id,
acceptances,
displayName,
file,
files,
isPerDeviceAcceptanceRequired,
isViewingBeforeAcceptanceRequired,
termsExpiration,
userReacceptRequiredFrequency;

DELETE examples

Delete an agreement object.

DELETE FROM entra_id.identity_governance.terms_of_use_agreements
WHERE agreement_id = '{{ agreement_id }}' --required
AND If-Match = '{{ If-Match }}'
;