Hi, Cedric.
>And finally I am restarting the idp and identity services.
You need to modify the corresponding template file instead, which is located at `/opt/gluu/jetty/identity/conf/shibboleth3/idp/saml-nameid.xml.vm`
Restart `identity` service after that, this will re-generate configuration files under `/opt/shibboleth-idp/` from those templates.
That said, have you tried to follow our custom nameid doc already? It offers a way to [define custom nameid from web UI](https://gluu.org/docs/ce/3.1.3/admin-guide/saml/#oxtrust-gui)