
sipo1 (sipo1) asked a question.
I have created a SAML application, but I am confused with the NameID Format settings. I tried all the 5 formats, the Format attribute of the <NameID> element changed, but the value between <NameID>foo</NameID> did not changed.
In my opinion, the value should be different under different Format.
- urn:oasis:names:tc:SAML:2.0:nameid-format:persistent -> foo
- urn:oasis:names:tc:SAML:2.0:nameid-format:transient -> a random value
- urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress -> foo@examp.com
<saml:NameID SPNameQualifier="http://localhost:6789/sp" Format="urn:oasis:names:tc:SAML:2.0:nameid-format:persistent">foo</saml:NameID>

Hi @sipo1 (sipo1) , Thank you for reaching out to the Okta Community!
The values passed in the SAML assertion are tied to the configured Username for the app. If you're checking the changes via the "Preview the SAML Assertion" option, please note that it's not going to be updated "real-time".
You'll need to save the settings, update the test user's application username (go to the app's Assignments tab → click on the Edit/pencil button and confirm that the new value is there), then re-test to see the value passed.
If my answer helped, remember to mark it as best to increase its visibility for other members of the Okta Community who might have the same questions as you.
Hope it helps!