Skip to main content

Privacera Documentation

With default Value - GET_UG_NAMES_Q(‘default_value’)

Description: returns the list of user groups (with each group name in quotes) to which the querying user is a member. If the user is not a member of any group, ‘default_value’ will be returned. Can be used for comparison of character values.


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

  • The user is not a member of any group,GET_UG_NAMES_Q(‘none’) will return‘none’.

Usage: can be used in:

  • Row Level Filter Policies - row level filters expressions

  • Example:location in (${{GET_UG_NAMES_Q(‘none’)}})

  • Masking policy - Custom masking condition

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

  • Policy conditions

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