---
title: Non-transient NameID format
description: By default, AM as an IdP uses the NameID format urn:oasis:names:tc:SAML:2.0:nameid-format:transient. Learn more in the AM documentation on Hosted identity provider configuration properties.
component: pinggateway
version: 2025.3
page_id: pinggateway:gateway-guide:federation-non-transient-name
canonical_url: https://docs.pingidentity.com/pinggateway/2026/gateway-guide/federation-non-transient-name.html
llms_txt: https://docs.pingidentity.com/pinggateway/llms.txt
docs_for_agents: https://developer.pingidentity.com/build-with-ai/docs-for-agents.md
superseded_by: https://docs.pingidentity.com/pinggateway/2026/gateway-guide/federation-non-transient-name.html
---

# Non-transient NameID format

By default, AM as an IdP uses the NameID format `urn:oasis:names:tc:SAML:2.0:nameid-format:transient`. Learn more in the AM documentation on [Hosted identity provider configuration properties](https://docs.pingidentity.com/pingam/8/saml2-guide/saml2-reference.html#sec-saml2-hosted-idp-configuration).

When the IdP uses another NameID format, configure PingGateway to use that NameID format by editing the Fedlet configuration file `sp-extended.xml`:

* To use the NameID value provided by the IdP, add the following attribute:

  ```xml
  <Attribute name="useNameIDAsSPUserID">
    <Value>true</Value>
  </Attribute>
  ```

* To use an attribute from the assertion, add the following attribute:

  ```xml
  <Attribute name="autofedEnabled">
    <Value>true</Value>
  </Attribute>
  <Attribute name="autofedAttribute">
    <Value>sn</Value>
  </Attribute>
  ```

  This example uses the value in `SN` to identify the subject.

Although PingGateway supports the `persistent` NameID format, PingGateway doesn't store the mapping. To configure this behavior, edit the file `sp-extended.xml`:

* To disable attempts to persist the user mapping, add the following attribute:

  ```xml
  <Attribute name="spDoNotWriteFederationInfo">
    <Value>true</Value>
  </Attribute>
  ```

* To enable attempts to persist the user mapping, add the following attribute:

  ```xml
  <Attribute name="spDoNotWriteFederationInfo">
    <Value>false</Value>
  </Attribute>
  ```

If a sign on request doesn't contain a NameID format query parameter, the value is defined by the presence and content of the NameID format list for the SP and IdP. For example, an SP-initiated login can be constructed with the binding and `NameIDFormat` as a parameter, as follows:

```none
http://fedlet.example.org:7070/fedlet/SPInitiatedSSO?binding=urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST&NameIDFormat=urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified
```

When the NameID format is provided in a list, it is resolved as follows:

* If both the IdP and SP have a list, the first matching NameID format in the lists.

* If either the IdP or SP list is empty, the first NameID format in the other list.

* If neither the IdP nor SP has a list, AM defaults to `transient` and PingGateway defaults to `persistent`.
