--- title: "Use User Attributes for content segmentation" slug: "user-attributes" updated: 2026-08-14T04:09:41Z published: 2026-08-14T04:09:41Z canonical: "support.whatfix.com/user-attributes" --- > ## Documentation Index > Fetch the complete documentation index at: https://support.whatfix.com/llms.txt > Use this file to discover all available pages before exploring further. # Use User Attributes for content segmentation Whatfix User Attributes enables fetching end users' information from your app and using it in Widget Visibility Rules for content segmentation and personalization. User information, such as role, signup date, department, or subscription plan, enables segmentation. - [Step 1: Create a User Attribute](/product-analytics/docs/user-attributes#Step1-Create-a-User-Attribute) - [Step 2: Assign values to the User Attribute](/product-analytics/docs/user-attributes#Step2-Assign-values-to-the-User-Attribute) - [Step 3: Add the User Attribute in Visibility Rules](/product-analytics/docs/user-attributes#Step3-Add-the-User-Attribute-in-Visibility-Rules) > [!WARNING] > Note: > > Whatfix needs to set up an integration that requires some backend configuration. Contact [support@whatfix.com](mailto:support@whatfix.com?Subject=Create%20integration%20using%20User%20Attributes&Body=Hi%20team%2C%0A%0ANeed%20help%20with%20creating%20an%20integration%20using%20User%20Attributes.%0AENT%20ID%3A%0A%0AThanks%20and%20regards%2C) to set it up. ## Step 1: Create a User Attribute 1. On the Whatfix Analytics dashboard, click **Settings**. ![ia_pa_dashboard_settings](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/ia_pa_dashboard_settings.png?sv=2026-02-06&spr=https&st=2026-10-29T07%3A45%3A08Z&se=2026-10-29T08%3A45%3A08Z&sr=c&sp=r&sig=4Pm%2BQXPfUOM%2BSUxBryII4Sst6W8g9ZirE2oOtMAx3%2Bc%3D) 2. Under **Integrations**, click **App integrations**. ![ia_pa_app_integrations.png](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/ia_pa_app_integrations.png?sv=2026-02-06&spr=https&st=2026-10-29T07%3A45%3A08Z&se=2026-10-29T08%3A45%3A08Z&sr=c&sp=r&sig=4Pm%2BQXPfUOM%2BSUxBryII4Sst6W8g9ZirE2oOtMAx3%2Bc%3D) 1. Under **My Integrations**, click **Attributes**. ![ia_db_integrations_attributes.png](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/ia_db_integrations_attributes.png?sv=2026-02-06&spr=https&st=2026-10-29T07%3A45%3A08Z&se=2026-10-29T08%3A45%3A08Z&sr=c&sp=r&sig=4Pm%2BQXPfUOM%2BSUxBryII4Sst6W8g9ZirE2oOtMAx3%2Bc%3D) > [!NOTE] > Info > > View the list of User Attributes created in your account on this page. 1. In the **User Attributes** tab, click **+ User Attribute**. ![ia_db_add_user_attribute.png](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/ia_db_add_user_attribute.png?sv=2026-02-06&spr=https&st=2026-10-29T07%3A45%3A08Z&se=2026-10-29T08%3A45%3A08Z&sr=c&sp=r&sig=4Pm%2BQXPfUOM%2BSUxBryII4Sst6W8g9ZirE2oOtMAx3%2Bc%3D) 2. Enter the **User Attribute Name** and, then select its **Variable Type**. ![Create_user_attribute](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/Create_user_attribute.png?sv=2026-02-06&spr=https&st=2026-10-29T07%3A45%3A08Z&se=2026-10-29T08%3A45%3A08Z&sr=c&sp=r&sig=4Pm%2BQXPfUOM%2BSUxBryII4Sst6W8g9ZirE2oOtMAx3%2Bc%3D) 3. Click **Save**. > [!WARNING] > Note > > - **User Attribute Name**: The user attribute name cannot begin with numbers, include spaces, or contain special characters (except underscores). > - **Variable Type**: > - **String**: Select this option to create a user attribute that matches the string value, such as a user name. > - **Encrypted_string**: Same as the String Variable Type, but the data is encrypted and stored in the database. > - **Double**: Select this option to specify a single number. For example, employee number. > - **Boolean**: Select this option to create a user attribute that has either true or false values, such as whether the user upgraded the plan or visited a specific section of the app. > - **Timestamp**: Select this option to specify a single date or time, such as the user’s birth date, signup date, and more. ## Step 2: Assign values to the User Attribute Assigning values (user information) to the User Attribute enables creating and defining Visibility Rules for segmentation. > [!WARNING] > Note > > To assign values to a User Attribute, contact [support@whatfix.com](mailto:support@whatfix.com?subject=Assign%20values%20to%20User%20Attribute&body=Hi%20team%2C%0A%0AI've%20created%20a%20User%20Attribute%20for%20my%20integration.%20Kindly%20help%20me%20assign%20values%20to%20the%20User%20Attribute.%0AENT%20ID%3A%0AIntegration%20name%3A%0ARegards%2C%0A). ## Step 3: Add the User Attribute in Visibility Rules Once the values are mapped to the User Attribute, they can be used in the Widget Visibility Rules for content segmentation. Use the following steps to add the User Attribute in Visibility Rules: > [!WARNING] > Note: > > If you have the New Visibility Rules enabled, see [Set Who can see your Widget](/docs/set-who-can-see-your-widget). 1. In the **Set Visibility Rules** section, select **User Attribute**. ![visibility_rules_user_attribute](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/visibility_rules_user_attribute.png?sv=2026-02-06&spr=https&st=2026-10-29T07%3A45%3A08Z&se=2026-10-29T08%3A45%3A08Z&sr=c&sp=r&sig=4Pm%2BQXPfUOM%2BSUxBryII4Sst6W8g9ZirE2oOtMAx3%2Bc%3D) 2. Select the **User Attribute** you created. ![select_user_attributes](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/select_user_attributes.png?sv=2026-02-06&spr=https&st=2026-10-29T07%3A45%3A08Z&se=2026-10-29T08%3A45%3A08Z&sr=c&sp=r&sig=4Pm%2BQXPfUOM%2BSUxBryII4Sst6W8g9ZirE2oOtMAx3%2Bc%3D) 3. Select the operator and enter the value. ![user_attribute_values](https://cdn.document360.io/a268766e-d74d-4619-9613-e2472f809ffb/Images/Documentation/user_attribute_values.png?sv=2026-02-06&spr=https&st=2026-10-29T07%3A45%3A08Z&se=2026-10-29T08%3A45%3A08Z&sr=c&sp=r&sig=4Pm%2BQXPfUOM%2BSUxBryII4Sst6W8g9ZirE2oOtMAx3%2Bc%3D) 4. Configure additional Visibility Rules, if necessary, and finish creating the widget.