-
I'm trying to add an attribute to a user when running a PersonAuthentication or a DynamicScope interception script. In both cases, it gives an exception: The following code is an excerpt from the PersonAuthentication script (in the method authenticate)
The last line throws the following exception: However, the getUser(...) works fine, and I can even access the user's attributes without problems. Over the TUI I could confirm that the logged-in user has the inum the exception claims not to find. Do I use the UserService wrong? Or are interception scripts not allowed to add a new attribute to existing users? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
IF this is a new attribute, did you add a column in the User table to support storing this attribute? You also need to register the Attribute in Auth Server (i.e. add attribute metadata, like its datatype and SAML URI). This can be done throught the config API or CLI. |
Beta Was this translation helpful? Give feedback.
IF this is a new attribute, did you add a column in the User table to support storing this attribute? You also need to register the Attribute in Auth Server (i.e. add attribute metadata, like its datatype and SAML URI). This can be done throught the config API or CLI.