Skip to content

Ask the HotKV docs

Answers come only from these docs and can be wrong; check the linked pages before you rely on them.

IAM.ROLE.INFO

Last updated
IAM.ROLE.INFO name
Group
IAM
Complexity
O(N) where N is the number of users with a role
Arity
2 (exactly, counting the command name)
Flags
admin, read-only, fast
HotKV Cloud
Not available
On-Premise
requires the enterprise-iam license feature

IAM.ROLE.INFO shows a role as it was made, in the form IAM.ROLE.CREATE takes it.

A null reply if there is no such role. Otherwise a flat array of 12 elements, six names and their values, in RESP2 and RESP3:

Name Value
name The role’s name
permissions What it allows, separated by commas: @category entries, then commands, then what it never allows with a -
key_prefixes The keys it reaches, separated by commas; * for all
ip_allowlist The networks a login must come from, separated by commas; empty for anywhere
rate_limit Commands per second as an integer; 0 for no limit
users How many users, ldap: or oidc: names and groups have the role, as an integer

Without a license that includes enterprise-iam the reply is the error NOLICENSE enterprise-iam requires a HotKV license. Contact sales@hotkv.com.

127.0.0.1:6379> IAM.ROLE.INFO reporting
1) "name"
2) "reporting"
3) "permissions"
4) "get,mget,scan"
5) "key_prefixes"
6) "report:,shared:*"
7) "ip_allowlist"
8) ""
9) "rate_limit"
10) (integer) 500
11) "users"
12) (integer) 0
127.0.0.1:6379> IAM.ROLE.INFO readonly
1) "name"
2) "readonly"
3) "permissions"
4) "@read,@connection,-@admin"
5) "key_prefixes"
6) "*"
7) "ip_allowlist"
8) ""
9) "rate_limit"
10) (integer) 0
11) "users"
12) (integer) 0
127.0.0.1:6379> IAM.ROLE.INFO nosuch
(nil)

HotKV-only command.

IAM.ROLE.LIST, IAM.ROLE.CREATE, IAM.USER.LIST