> ## Documentation Index
> Fetch the complete documentation index at: https://anaconda.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Updating your SAML username attribute in Keycloak

This process requires a Security Assertion Markup Language (SAML) proxy to be previously set up. For more information about setting up a SAML proxy, see [Configuring a proxy for outgoing Keycloak HTTP requests](/docs/psm-on-prem/6.5.1/admin/keycloak_config/saml_proxy).

When using SAML, you can update which attribute Keycloak pulls and displays for your users’ names in Anaconda Server. To do so, follow these steps:

1. [Log in to the Keycloak administrative console](/docs/psm-on-prem/6.5.1/admin/keycloak_config/user_roles#accessing-the-keycloak-administrative-console).

2. Select **Identity providers** from the left-hand navigation menu.

3. Select your SAML identity provider from the list.

4. Select the **Mappers** tab.

5. Click **Create**.

   <Frame>
     <img src="https://mintcdn.com/anaconda-29683c67/FWjHZXWDjYmx0_bG/images/keycloak_saml_mapper_create.png?fit=max&auto=format&n=FWjHZXWDjYmx0_bG&q=85&s=c94851ef9000e44d33e85b6f6c1289a6" alt="" width="1922" height="966" data-path="images/keycloak_saml_mapper_create.png" />
   </Frame>

6. Enter a name for your mapper.

7. Open the **Synch Mode Override** dropdown and select **inherit**.

8. Open the **Mapper Type** dropdown and select **Username Template Importer**.

9. Enter the template to use to format the imported usernames. Hover your mouse over the question mark icon beside the **Template** field for an example.

10. Click **Save**.

    <Frame>
      <img src="https://mintcdn.com/anaconda-29683c67/FWjHZXWDjYmx0_bG/images/keycloak_saml_username_id_mapper.png?fit=max&auto=format&n=FWjHZXWDjYmx0_bG&q=85&s=bc1b3a104716b4a000050ec327e6c025" alt="" width="1922" height="963" data-path="images/keycloak_saml_username_id_mapper.png" />
    </Frame>
