Hi,
Is there any way to get the name of the security level that you are defining a rule expression for?
I would something that would return ‘testLevel’ in the place of {this.levelName}
runscript("Security.roles.test('"+{this.levelName}+"','"+{attribute-source:idTokenClaims:preferred_username}+"')")
This way I can have the same expression for every level, and the script module can apply the rules.
Regards,
Deon