Skip to content

CURRENT_USER_LDAP_GROUPS

The CURRENT_USER_LDAP_GROUPS function returns all the ldap groups (as an ARRAY) of the user who is executing the current SQL statement.

Example

snappy> SELECT array_contains(CURRENT_USER_LDAP_GROUPS(), 'GROUP1');
----------------------------
true

1 row selected

Also see: