IS_INSTANCE_ROLE_IN_SESSION
functionsupportedAccess control (grants, roles)Verifies whether the user’s active primary or secondary role hierarchy for the session inherits the specified instance role.
Syntax
IS_INSTANCE_ROLE_IN_SESSION( '<instance_name>' , '<instance_role_name>' )
Parameters
| Name | Required | Description |
|---|---|---|
'instance_name' | required | Specifies the name of the instance. |
'instance_role_name' | required | Specifies the name of the instance role. |
Returns
- TRUE if the current user’s active primary role or secondary roles in the session inherit the specified instance role. When the DEFAULT_SECONDARY_ROLES value is ALL, any role granted to the user inherits the privileges of the specified instance role. - FALSE if the specified instance role is not in the role hierarchy of the user’s current primary or secondary roles.