Skip to content

Latest commit

 

History

History
33 lines (19 loc) · 414 Bytes

security_functions.md

File metadata and controls

33 lines (19 loc) · 414 Bytes

Security functions

ZetaSQL supports the following security functions.

SESSION_USER

SESSION_USER()

Description

Returns the email address of the user that is running the query.

Return Data Type

STRING

Example

SELECT SESSION_USER() as user;

+----------------------+
| user                 |
+----------------------+
| jdoe@example.com     |
+----------------------+