ACL DRYRUN
ACL DRYRUN username command [arg [arg ...]]
@admin, @slow, @dangerous, 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.
Simple string reply: OK on success. Bulk string reply: An error describing why the user can't execute the command.
> ACL SETUSER VIRGINIA +SET ~* "OK" > ACL DRYRUN VIRGINIA SET foo bar "OK" > ACL DRYRUN VIRGINIA GET foo bar "This user has no permissions to run the 'GET' command"
© 2006–2022 Salvatore Sanfilippo
Licensed under the Creative Commons Attribution-ShareAlike License 4.0.
https://redis.io/commands/acl-dryrun/