> For the complete documentation index, see [llms.txt](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.veza.com/4yItIzMvkpAvMVFAamTf/features/lifecycle-management/transformers/attribute-sync.md).

# Attribute Synchronization

Configure how user attributes from a source of identity are synchronized for target user accounts

Attribute synchronization ensures that identity attributes in target systems remain up to date with the corresponding attributes in the source of truth. Veza Lifecycle Management provides configuration at two levels to control how and when attributes are synchronized.

## **Action Level**

At the action level, there are two distinct options to govern provisioning and user update processes:

* **Create accounts** - Turn this setting on for the action to create user accounts that don't exist in the target system. When it is off, users that don't already exist are skipped.
* **Update existing accounts** - Turn this setting on for the action to update existing active user accounts with attribute changes from the source of truth. When it is off, existing active users are not modified, and changes apply only when a user is created or reactivated.

## **Attribute Level**

At the attribute level, there are two explicit choices that define how and when attribute values are applied to user accounts:

* **Set for new users only** - The attribute value is set only when creating new user accounts
* **Set for new and existing users** - The attribute value is set for new accounts and updated for existing accounts when changes are detected

{% hint style="warning" %}
You may not want to enable "Set for new and existing users" for attributes like user principal name, which may change due to marital status or legal name corrections but shouldn't be automatically updated in all systems.
{% endhint %}

Both levels must be properly configured for an attribute to be continuously synchronized. For example, to keep an employee's department updated:

1. Turn on **Update existing accounts** on the Sync Identities action
2. Select **Set for new and existing users** for the department attribute

## **Recommended Settings**

**Set for new and existing users** (continuously sync attributes that change during employment):

* Given Name, Surname
* Department
* Title
* Manager
* Cost Center
* AD Distinguished Name (DN)
* AD User Principal Name (UPN)
* AD Email

**Set for new users only** (preserve stable identifiers):

* Active Directory sAMAccountName
* Email Addresses (for Email Write-Back action)

A write-back Sync Identities action that maps `email` to update existing HRIS records is the exception: select **Set for new and existing users** for that attribute. See [Example: write an Azure AD or Active Directory email to Workday](/4yItIzMvkpAvMVFAamTf/features/lifecycle-management/policies-workflows/actions/sync-identities.md#example-write-an-azure-ad-or-active-directory-email-to-workday).

This configuration ensures that dynamic attributes remain up to date while preserving stable identifiers.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.veza.com/4yItIzMvkpAvMVFAamTf/features/lifecycle-management/transformers/attribute-sync.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
