How to add or append "@example.com" to an attribute in SAML Assertion in the AdminUI Partnership configuration?
Having an assertion attribute called employeenumber but Service Provider (SP) is accepted in below mentioned form:
Here, "@example.com" needs to be appended to the employee number.
When the employeetype is retail, then only add "@example.com" to the employeenumber else use the mail attribute.
Use GET and String concatenation functions in an expression to achieve this.
Follow the below steps:
GET(employeenumber)+""+"@example.com"
#{attr["employeeType"] == 'retail' ? attr["employee"] : attr["mail"]}