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.USER.LIST

Last updated
IAM.USER.LIST
Group
IAM
Complexity
O(N) where N is the number of principals
Arity
1 (exactly, counting the command name)
Flags
admin, read-only, fast
HotKV Cloud
Not available
On-Premise
requires the enterprise-iam license feature

IAM.USER.LIST returns every principal that has a role (a user name, ldap:name, oidc:name or group:name), sorted, each with its roles.

An array in RESP2 and RESP3, with one element per principal: an array of the principal as a bulk string, and an array of its roles. An empty array if nobody has a role. 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.USER.LIST
1) 1) "group:cn=ops,ou=groups,dc=example,dc=com"
2) 1) "admin"
2) 1) "group:developers"
2) 1) "app"
3) 1) "oidc:bob"
2) 1) "reporting"

HotKV-only command.

IAM.USER.ASSIGN, IAM.USER.UNASSIGN, IAM.ROLE.INFO