Skip to main content

Privacera Documentation

With default Value - GET_UG_NAMES(‘default_value’)

Description: returns the list of user groups 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 numeric values.

Example:

  • The user is a member of groupsadmin andmanager,GET_UG_NAMES(‘none’) will returnadmin,manager.

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

Usage: can be used in:

  • Row Level Filter Policies - row level filters expressions

  • Example:dept_id in (${{GET_UG_NAMES(‘0’)}})

  • Masking policy - Custom masking condition

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

  • Policy condition

  • Example:GET_UG_NAMES(‘operators’)==’managers'