Skip to main content

Privacera Documentation

GET_USER_ATTR_NAMES_Q()

Description: returns the list of user attribute keys (in single quotes, separated by comma). Can be used for comparison of character values.

Example:

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

Usage: can be used in:

  • Row Level Filter Policies - row level filters expressions

  • Example:modules in (${{GET_USER_ATTR_NAMES_Q()}})

  • Masking policy - Custom masking condition

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

  • Policy condition

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