Complement SAMLResponse
This flow is executed before the return of the SAMLResponse.
Pre SAMLResponse creation
This trigger is called before attributes are set in the SAMLResponse.
Parameters of Pre SAMLResponse creation
ctx
The first parameter contains the following fields:v1getUser()UserusergetMetadata()metadataResultgrantsUserGrantList
api
The second parameter contains the following fields:v1attributessetCustomAttribute(string, string, ...string)
Sets any value as attribute in addition to the default attributes, if the key is not already present. The parameters represent the key, nameFormat and the attributeValue(s).
usersetMetadata(string, Any)
Key of the metadata and any value