Skip to main content

synchronization_templates

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

Overview

Namesynchronization_templates
TypeResource
Identra_id.applications.synchronization_templates

Fields

The following fields are returned by SELECT queries:

Retrieved navigation property

NameDatatypeDescription
idstringThe unique identifier for an entity. Read-only.
applicationIdstring (uuid)Identifier of the application this template belongs to. (pattern: ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$)
defaultbooleantrue if this template is recommended to be the default for the application.
descriptionstringDescription of the template.
discoverablebooleantrue if this template should appear in the collection of templates available for the application instance (service principal).
factoryTagstringOne of the well-known factory tags supported by the synchronization engine. The factoryTag tells the synchronization engine which implementation to use when processing jobs based on this template.
metadataarrayAdditional extension properties. Unless mentioned explicitly, metadata values should not be changed.
schemaDefault synchronization schema for the jobs based on this template.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectapplication_id, synchronization_template_idPreconfigured synchronization settings for a particular application.
listselectapplication_idPreconfigured synchronization settings for a particular application.
insertinsertapplication_id
updateupdateapplication_id, synchronization_template_idUpdate (override) the synchronization template associated with a given application.
deletedeleteapplication_id, synchronization_template_idIf-Match
schema_directories_discoverexecapplication_id, synchronization_template_id, directory_definition_idDiscover the latest schema definition for provisioning to an application.
schema_parse_expressionexecapplication_id, synchronization_template_idParse a given string expression into an attributeMappingSource object. For more information about expressions, see Writing Expressions for Attribute Mappings in Microsoft Entra ID.

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
application_idstringThe unique identifier of application
directory_definition_idstringThe unique identifier of directoryDefinition
synchronization_template_idstringThe unique identifier of synchronizationTemplate
If-MatchstringETag

SELECT examples

Preconfigured synchronization settings for a particular application.

SELECT
id,
applicationId,
default,
description,
discoverable,
factoryTag,
metadata,
schema
FROM entra_id.applications.synchronization_templates
WHERE application_id = '{{ application_id }}' -- required
AND synchronization_template_id = '{{ synchronization_template_id }}' -- required
;

INSERT examples

No description available.

INSERT INTO entra_id.applications.synchronization_templates (
id,
applicationId,
default,
description,
discoverable,
factoryTag,
metadata,
schema,
application_id
)
SELECT
'{{ id }}',
'{{ applicationId }}',
{{ default }},
'{{ description }}',
{{ discoverable }},
'{{ factoryTag }}',
'{{ metadata }}',
'{{ schema }}',
'{{ application_id }}'
RETURNING
id,
applicationId,
default,
description,
discoverable,
factoryTag,
metadata,
schema
;

UPDATE examples

Update (override) the synchronization template associated with a given application.

UPDATE entra_id.applications.synchronization_templates
SET
id = '{{ id }}',
applicationId = '{{ applicationId }}',
default = {{ default }},
description = '{{ description }}',
discoverable = {{ discoverable }},
factoryTag = '{{ factoryTag }}',
metadata = '{{ metadata }}',
schema = '{{ schema }}'
WHERE
application_id = '{{ application_id }}' --required
AND synchronization_template_id = '{{ synchronization_template_id }}' --required
RETURNING
id,
applicationId,
default,
description,
discoverable,
factoryTag,
metadata,
schema;

DELETE examples

No description available.

DELETE FROM entra_id.applications.synchronization_templates
WHERE application_id = '{{ application_id }}' --required
AND synchronization_template_id = '{{ synchronization_template_id }}' --required
AND If-Match = '{{ If-Match }}'
;

Lifecycle Methods

Discover the latest schema definition for provisioning to an application.

EXEC entra_id.applications.synchronization_templates.schema_directories_discover
@application_id='{{ application_id }}' --required,
@synchronization_template_id='{{ synchronization_template_id }}' --required,
@directory_definition_id='{{ directory_definition_id }}' --required
;