---
schema_version: "1"
id: b6f1d24cd4b5f8da1adf77b062f0a039fca9ae098a90538f10057ba504d7a97f
title: Configure a Custom Attribute for External Client Apps
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/meta_configure_custom_attributes_for_external_client_apps.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.meta_configure_custom_attributes_for_external_client_apps.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 0f9d19cce795f2ff3ef6e9ecf8656be802a4c5cb7874f69e271247d5d26bf581
description: Edit the settings file to add a custom attribute. Each new attribute in the settings file creates a related attribute in the policies file at runtime.
products:
  - Security
  - Cross Cloud
release: "264"
---
# Configure a Custom Attribute for External Client Apps

Edit the settings file to add a custom attribute. Each new attribute in the settings file creates a related attribute in the policies file at runtime.

You can add up to 128 attributes, and each new attribute must have a unique key and must use an available field.

1. Open [the settings file](https://help.salesforce.com/s/articleView?id=xcloud.configure_external_client_app_oauth_settings.htm&type=5&language=en_US).
2. Add a custom attribute that includes a unique key and an available field.
    
    ```markup
        <customAttributes>
            <key>userattribute</key>
            <formula>$User.Country</formula>
        </customAttributes>
    ```
3. [Deploy the external client app](https://help.salesforce.com/s/articleView?id=xcloud.deploy_external_client_app_oauth_plugin.htm&type=5&language=en_US) to incorporate the new attribute.

The new attribute appears in the policies file when the local or subscriber admin deploys the external client app.