IAM.USER.LIST
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.
Return value
Section titled “Return value”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.
Examples
Section titled “Examples”127.0.0.1:6379> IAM.USER.LIST1) 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"Compatibility
Section titled “Compatibility”HotKV-only command.
See also
Section titled “See also”Was this page helpful?
Thanks for the feedback.