Skip to main content

Privacera Documentation

GET_UG_NAMES()

Description: returns the list of user groups (without quotes) to which the querying user is a member. Can be used for comparison of numeric values.

Example:

  • The user joe is a member of groups admin and manager,GET_UG_NAMES() will returnadmin,manager.

Usage: can be used in:

  • Row Level Filter Policies - row level filters expressions

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

  • Masking policy - Custom masking condition

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

  • Policy condition

  • Example:GET_UG_NAMES()==’managers'