ACL WHOAMI
Syntax
ACL WHOAMI
- Available since:
- Redis Open Source 6.0.0
- Time complexity:
- O(1)
- ACL categories:
-
@slow, - Compatibility:
- Redis Enterprise and Redis Cloud compatibility
Return the username the current connection is authenticated with.
New connections are authenticated with the "default" user. They
can change user using AUTH.
Examples
> ACL WHOAMI
"default"
Redis Enterprise and Redis Cloud compatibility
| Redis Enterprise |
Redis Cloud |
Notes |
|---|---|---|
| ✅ Standard |
✅ Standard |
Not supported for scripts. |
Return information
Bulk string reply: the username of the current connection.