---
sourceDocument: Brazil Platform security
sourceDocumentLink: https://www.servicenow.com/docs/r/platform-security

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil Platform security

ft:clusterId :

    - psec

bundleId :

    - psec

workflow :

    - Platform


---

# Attribute Mapping references

# Attribute Mapping references {#ariaid-title1}

Release version: Brazil  
Updated September 10, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 2 minutes to read
Summarize  
![AI sparkle icon](https://servicenow.com/docs/portal-asset/ai-sparkle-icon) Summarized using AI  
This content was generated using new OpenAI-powered functionality. Results are provided on an as is basis and are not guaranteed to be accurate or complete.  

## Summary of Attribute Mapping references

Attribute mappings in ServiceNow allow you to define how external attributes, such as those from SCIM providers, correspond to ServiceNow table fields.
This enables seamless integration and synchronization of user and resource information by using attributes as a single source of truth for mapping.
Show full answer Show less  

## Key Features

* **Attribute and Sub-Attribute:** Define the main attribute (e.g., *userName* ) and optionally a sub-attribute for complex types (e.g., *name.familyName*). Simple attributes have no sub-attribute.
* **Filter Condition:** Applies to multi-valued attributes to specify additional filters based on schema values. For example, filtering phone numbers by type such as *mobile* or *work*.
* **Database Field Name:** Maps the SCIM attribute directly to a specific ServiceNow table field. Supports dot-walking to reference related fields (e.g., mapping *department* attribute to the *Department Name* field in the User table).
* **Default Value:** Used when direct attribute mapping returns null or to set a hard-coded value. In the case of hard-coded values, database table and field names are set to None.
* **Script:** Allows custom logic to fetch or transform attribute values. Scripts must return a string or JSON string formatted as expected by the SCIM provider. Supports both simple string outputs and stringified JSON arrays for multi-valued attributes.

## Practical Application for ServiceNow Customers

By configuring attribute mappings, you can ensure accurate and flexible synchronization of user data and other resources between ServiceNow and external identity providers using SCIM. This capability supports complex attribute structures, filtering, defaulting, and scripting for customization, helping maintain data integrity and meet specific integration requirements.  
The attribute mappings enable you to use the attributes as a single source of resource
to the ServiceNow table fields.

## Attribute {#attribute-mapping-references__section_sbw_3jm_htb}

The attribute for which mapping
needs to be defined. For example, userName.

## Sub-Attribute {#attribute-mapping-references__section_o4h_cmm_htb}

Select the sub-attribute, if
any, for which a mapping needs to be defined.

For example, if there is a complex type
attribute like name.familyName, then the attribute is
name and the sub-attribute is
familyName.

For simple attributes like user name, the
Sub-Attribute value would be None.

## Filter Condition {#attribute-mapping-references__section_gfm_ymm_htb}

A multi-valued attribute can
have additional information that can be specified by using a Filter Condition. The choices
for the filter condition are populated using the schemas defined by the SCIM
Provider.

For example, the phoneNumbers attribute has multiple
types like work, mobile, home, and so on.

You can specify a Filter Condition from a
set of possible values. For example, the phoneNumber attribute can have
the Filter Condition as type eq "mobile".

The phoneNumber attribute can instead have a Filter Condition
as type eq "work".

## Database Field Name {#attribute-mapping-references__section_a1t_4sm_htb}

If the direct attribute
mapping option is chosen, then this attribute needs to be defined. The Database Field Name field represents the ServiceNow field name
that is mapped with the SCIM Attribute.

For example, the username
SCIM Attribute can be mapped to a user as the Database Table Name
field, and to the user ID field as the Database Field Name
field.

<br />

You can also dot-walk using the Database Field Name. For
example, the department SCIM Attribute can be mapped to the
Department Name field.

Here the Database Table is User and the Database Field Name
is Department Name.

## Default Value {#attribute-mapping-references__section_e2t_zvm_htb}

The default value is passed to
the SCIM Provider if direct attribute mapping of that field returns null. The default value
can also be used to return a hard-coded value.

In the case of a hard-coded value, the
database table name and field name should be None.

For example,
the primary sub-attribute value of work email can be hard-coded as
true.

## Script {#attribute-mapping-references__section_hpd_1wm_htb}

The script is used to fetch the
attribute value. The return type of the script should be a string, or a JSON
converted as a string. The output of the script should be in the proper format as expected
by the provider for that attribute.

The following is a sample script for a
multi-valued attribute.

The output of the script should have a stringified JSON array.

The following
is a sample script of a simple-valued Attribute.

The output of the script should be a string.

