This script checks whether the user has a role or not. This script takes two arguments
Argument #1: userId - userId of the record for which you need to validate the roles exists Argument #2: roleId - roleId is the sys_id of the role that we need to check whether exists against the provided userId