content/commands/acl-dryrun.md
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.
> 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 | 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. |
{{< multitabs id="acl-dryrun-return-info" tab1="RESP2" tab2="RESP3" >}}
Any of the following:
OK on success.-tab-sep-
Any of the following:
OK on success.{{< /multitabs >}}