W3cubDocs

/Redis

ACL

ACL WHOAMI

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

Return value

Bulk string reply: the username of the current connection.

Examples

> ACL WHOAMI
"default"

© 2009–2020 Salvatore Sanfilippo
Licensed under the Creative Commons Attribution-ShareAlike License 4.0.
https://redis.io/commands/acl-whoami