如何使用 Riak admin-shell 列出所有现有用户?

How to list all existing users using Riak admin-shell?

在 Riak 中,如何检索当前存在的用户列表?我似乎无法在 Stack Overflow 的任何地方找到它。

可以随时访问此信息:

riak-admin security print-users

Example output, assuming user named riakuser with an assigned password:

+----------+--------+----------------------+------------------------------+
| username | groups |       password       |           options            |
+----------+--------+----------------------+------------------------------+
| riakuser |        |983e8ae1421574b8733824|              []              |
+----------+--------+----------------------+------------------------------+

Note: All passwords are displayed in encrypted form in console output.

If you’d like to see which permissions have been assigned to riakuser, you would need to use the print-grants command.

The security print-user (singular) command can be used with a name as argument to see the same information as above, except for only that user.

有关用户管理的详细信息,请参阅 basho/docs Security Basics