Skip to main content

Privacera Documentation

With default Value - GET_USER_ATTR_NAMES(‘default_value’)

Description: returns the list of attribute keys (in single quotes, separated by comma). If the user does not have any attribute, ‘default_value’ will be returned. Can be used for comparison of character values.


  • The user has an attribute: access=auditor, GET_USER_ATTR_NAMES_Q(‘data’) will return‘access’.

  • The user does not have any attribute,GET_USER_ATTR_NAMES_Q(‘data’) will return‘data’.

Usage: can be used in:

  • Row Level Filter Policies - row level filters expressions

  • Example:modules in (${{GET_USER_ATTR_NAMES_Q(‘data’)}})

  • Masking policy - Custom masking condition

  • Example:CASE WHEN modules in (${{GET_USER_ATTR_NAMES_Q(‘data’)}}) THEN {col} ELSE 'NONE' END

  • Policy condition

  • Example:GET_USER_ATTR_NAMES_Q(‘none’)==’\'location\’'