ACL WHOAMI

Syntax
ACL WHOAMI
Available since:
6.0.0
Time complexity:
O(1)
ACL categories:
@slow,

Return the username the current connection is authenticated with. New connections are authenticated with the "default" user. They can change user using AUTH.

Return

Bulk string reply: the username of the current connection.

Examples

> ACL WHOAMI
"default"
Rate this page