We have a JDBC application where user is allowed to have multiple roles at a time(no maximum limit). Anyone could you please advise that whether we have to go for stored procedure or can we do it with normal insert(SQL) queries?
We have below concerns.
Since user is allowed to have multiple roles(no maximum limit).
If user raise a request to add roles and remove existing roles or vice versa. It will be an issue to manage in SAM.
Since user is allowed to have multiple roles, managing user disable operation is complex through SAM.
Note : If it can be done through normal queries, could you please provide the reference code if available.
Welcome to the dev community and congrats on your first post. I would recommend to still go with Stored Procs that is the suggested process.
And code reference would change from different integration but you can use the extensibility feature leveraging both JDBC Buildmap and Provisioning Rules.
Example code is always present in the examplerules.xml file.