Skip to main content

synchronization_templates

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

Overview

Namesynchronization_templates
TypeResource
Identra_id.service_principals.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
getselectservice_principal_id, synchronization_template_idPreconfigured synchronization settings for a particular application.
listselectservice_principal_idList the synchronization templates associated with a given application or service principal.
insertinsertservice_principal_id
updateupdateservice_principal_id, synchronization_template_id
deletedeleteservice_principal_id, synchronization_template_idIf-Match
schema_directories_discoverexecservice_principal_id, synchronization_template_id, directory_definition_idDiscover the latest schema definition for provisioning to an application.
schema_parse_expressionexecservice_principal_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
directory_definition_idstringThe unique identifier of directoryDefinition
service_principal_idstringThe unique identifier of servicePrincipal
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.service_principals.synchronization_templates
WHERE service_principal_id = '{{ service_principal_id }}' -- required
AND synchronization_template_id = '{{ synchronization_template_id }}' -- required
;

INSERT examples

No description available.

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

UPDATE examples

No description available.

UPDATE entra_id.service_principals.synchronization_templates
SET
id = '{{ id }}',
applicationId = '{{ applicationId }}',
default = {{ default }},
description = '{{ description }}',
discoverable = {{ discoverable }},
factoryTag = '{{ factoryTag }}',
metadata = '{{ metadata }}',
schema = '{{ schema }}'
WHERE
service_principal_id = '{{ service_principal_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.service_principals.synchronization_templates
WHERE service_principal_id = '{{ service_principal_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.service_principals.synchronization_templates.schema_directories_discover
@service_principal_id='{{ service_principal_id }}' --required,
@synchronization_template_id='{{ synchronization_template_id }}' --required,
@directory_definition_id='{{ directory_definition_id }}' --required
;