Skip to main content

Privacera Documentation


Description: returns the list of user groups (with each group name in quotes) to which the querying user is a member. Can be used for comparison of character values.


  • The user joe is a member of groups admin and manager,GET_UG_NAMES_Q() will return‘admin’,‘manager’.

Usage: can be used in:

  • Row Level Filter Policies - row level filters expressions

  • Example:location in (${{GET_UG_NAMES_Q()}})

  • Masking policy - Custom masking condition

  • Example:CASE WHEN location in (${{GET_UG_NAMES_Q()}}) THEN {col} ELSE 'NONE' END

  • Policy conditions:

  • Example:GET_UG_NAMES_Q()=='\’managers\''