Skip to main content

Privacera Documentation

GET_UR_NAMES()

Description: returns the list of user roles (without quotes, separated by comma) to which the querying user is a member. Can be used for comparison of numeric or character values.

Example:

  • The user is a member of the role admin and manager,GET_UR_NAMES() will returnadmin, manager.

Usage: can be used in:

  • Row Level Filter Policies - row level filters expressions

  • Example:dept_id in (${{GET_UR_NAMES()}})

  • Example:location=’${{GET_UR_NAMES()}}’

  • Masking policy - Custom masking condition

  • Example:CASE WHEN dept_id in (${{GET_UR_NAMES()}}) THEN {col} ELSE '0' END

  • Policy condition

  • Example:GET_UR_NAMES()=='admin'