<div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;display:inline">We would like to send emailaddress (or the username that the user logged in with on the IdP login screen) as the NameId in the authn response.</div></div></blockquote><div><br></div><div>You need to configure the p:nameIDFormatPrecedence attribute of the SSO profile beans in relying-party.xml. The example at the bottom of the following page has an example:</div><div><br></div><div><a href="https://wiki.shibboleth.net/confluence/display/IDP30/RelyingPartyConfiguration#RelyingPartyConfiguration-CustomProfileDefaults">https://wiki.shibboleth.net/confluence/display/IDP30/RelyingPartyConfiguration#RelyingPartyConfiguration-CustomProfileDefaults</a><br></div><div><br></div><div>M</div><div><br></div></div></div>