Back to Redis

ACL DRYRUN

content/commands/acl-dryrun.md

latest1.5 KB
Original Source

Simulate the execution of a given command by a given user. This command can be used to test the permissions of a given user without having to enable the user or cause the side effects of running the command.

Examples

> ACL SETUSER VIRGINIA +SET ~*
"OK"
> ACL DRYRUN VIRGINIA SET foo bar
"OK"
> ACL DRYRUN VIRGINIA GET foo
"User VIRGINIA has no permissions to run the 'get' command"

Redis Software and Redis Cloud compatibility

| Redis Software | Redis Cloud | <span style="min-width: 9em; display: table-cell">Notes</span> | |:----------------------|:-----------------|:------| | <span title="Supported">✅ Standard</span> <span title="Supported"><nobr>✅ Active-Active</nobr></span> | <span title="Supported">✅ Standard</span> <span title="Supported"><nobr>✅ Active-Active</nobr></span> | Might reply with "unknown user" for LDAP users even if AUTH succeeds. |

Return information

{{< multitabs id="acl-dryrun-return-info" tab1="RESP2" tab2="RESP3" >}}

Any of the following:

-tab-sep-

Any of the following:

{{< /multitabs >}}