# How to pass the the language attribute for SAML application in query parameter

**URL:** <https://community.auth0.com/t/how-to-pass-the-the-language-attribute-for-saml-application-in-query-parameter/182781>\
**Category:** Get Help\
**Tags:** new-universal-login-experience, login-experience\
**Created:** [February 25, 2025, 9:49am UTC](https://community.auth0.com/t/how-to-pass-the-the-language-attribute-for-saml-application-in-query-parameter/182781 "2025-02-25T09:49:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anant.d.sharma](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/anant.d.sharma/32/72177_2.png) [@anant.d.sharma](https://community.auth0.com/u/anant.d.sharma)\
**Post date:** [February 25, 2025, 9:49am UTC](https://community.auth0.com/t/how-to-pass-the-the-language-attribute-for-saml-application-in-query-parameter/182781/1 "2025-02-25T09:49:35Z")

</div>

Hello,  
We have raised a case regarding the multilanguage support for SAML application, and we got response on below case:  
Case ID: 176170

This is bit unclear as for SAML application if we pass the ui\_locales parameter it throws an error. And as per the auth0 documentation this ui\_locales parameter is only supported for OIDC(/authorize).

Is there any substitute for ui\_locales parameter for SAML applications or provide your suggestion to achieve the same.

Thanks in advance!!

---

<div class="post-metadata">

**Author:** ![gerald.czifra](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gerald.czifra/32/75301_2.png) [@gerald.czifra](https://community.auth0.com/u/gerald.czifra)\
**Post date:** [February 25, 2025, 5:43pm UTC](https://community.auth0.com/t/how-to-pass-the-the-language-attribute-for-saml-application-in-query-parameter/182781/3 "2025-02-25T17:43:55Z")

</div>

Hi @anant.d.sharma

Welcome to the Auth0 Community!

Reading through your message, I can confirm that you are correct, `ui_locales` is only meant for OIDC, as mentioned in our following [documentation](https://auth0.com/docs/customize/internationalization-and-localization/universal-login-internationalization#:~:text=The%20ui_locales%20parameter%20can%20only%20be%20used%20in%20OAuth%20flows%2C%20as%20it%E2%80%99s%20not%20available%20in%20SAML%20or%20WS%2DFederation).

I believe you should be able to utilize the below mapping within a Post-Login Action in order to pass the SAML language attribute:

```auto
if (event.user.user_metadata.UI_Language)
{
    api.samlResponse.setAttribute('http://schemas.xmlsoap.org/ws/2005/05/identity/claims/UI_Language', event.user.user_metadata.UI_Language);
}

```

You will need to make sure the attribute exists within the user\_metadata as well and is exactly as in the above code ( no difference in upper case/lowercase, whitespaces etc.)

More information can be found here as well [SAML Attribute Mapping in SAML2 AddOn vs. Post-Login Action](https://community.auth0.com/t/saml-attribute-mapping-in-saml2-addon-vs-post-login-action/168088)

Hope this helped!  
Gerald

---

<div class="post-metadata">

**Author:** ![poornima.bal](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/poornima.bal/32/71402_2.png) [@poornima.bal](https://community.auth0.com/u/poornima.bal)\
**Post date:** [February 26, 2025, 7:22am UTC](https://community.auth0.com/t/how-to-pass-the-the-language-attribute-for-saml-application-in-query-parameter/182781/4 "2025-02-26T07:22:13Z")

</div>

Hi Gerald,

Thank you for your response. As per my understanding the code you provided will add the preferred language stored in Okta user metadata into SAML response. But our requirement is to find a way to display the Universal Login screens for SAML app in different language based on some attribute (similar to ui\_locales for OIDC app).  
Basically, the ask is if we can control the UI screens for SAML type app for specific languages like if we want to display the login in French what can we pass in the request to get that?
