Thiago, You can use groovy scripting for either Attribute Definition or Attribute Resolution. https://apereo.github.io/cas/7.3.x/integration/Attribute-Resolution.html#groovyPropertiescaspersondirectory https://apereo.github.io/cas/7.3.x/integration/Attribute-Definitions.html#
Ray ________________________________ From: [email protected] <[email protected]> on behalf of Thiago Castro <[email protected]> Sent: December 11, 2025 11:02 To: CAS Community <[email protected]> Subject: [cas-user] Use specific attribute for nameID in SAML2 and another one as fallback You don't often get email from [email protected]. Learn why this is important<https://aka.ms/LearnAboutSenderIdentification> Hello everyone, Currently, we can define a specific attribute for nameID in service definition. If that attribute is not present, it uses the default resolved in authentication according with documentation. Is there a way that I can set an attribute as fallback? I want to set "CPF" as the attribute for nameID (which can be done via service definition) and another one called "DRE" as the fallback. And the user authenticates in CAS using email. Best regards, Thiago -- - Website: https://apereo.github.io/cas - List Guidelines: https://goo.gl/1VRrw7 - Contributions: https://goo.gl/mh7qDG --- You received this message because you are subscribed to the Google Groups "CAS Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]<mailto:[email protected]>. To view this discussion visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/f4a0c9f4-ca66-4360-9a59-a2c6ae52e13en%40apereo.org<https://groups.google.com/a/apereo.org/d/msgid/cas-user/f4a0c9f4-ca66-4360-9a59-a2c6ae52e13en%40apereo.org?utm_medium=email&utm_source=footer>. -- - Website: https://apereo.github.io/cas - List Guidelines: https://goo.gl/1VRrw7 - Contributions: https://goo.gl/mh7qDG --- You received this message because you are subscribed to the Google Groups "CAS Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/YT3P288MB0094EAFFFBD18BE811A75FBACEA1A%40YT3P288MB0094.CANP288.PROD.OUTLOOK.COM.
