{"id":1156,"date":"2015-10-07T15:43:16","date_gmt":"2015-10-07T13:43:16","guid":{"rendered":"https:\/\/elkano.org\/blog\/?p=1156"},"modified":"2015-10-08T17:45:23","modified_gmt":"2015-10-08T15:45:23","slug":"radosgw-list-current-users","status":"publish","type":"post","link":"https:\/\/elkano.org\/blog\/radosgw-list-current-users\/","title":{"rendered":"Radosgw list current created users"},"content":{"rendered":"<p>I haven&#8217;t found in the Ceph Object Gateway docs a command to get the radosgw active users, so I was looking for it and finally inspecting the objects inside the rados gateway pools, I found the way to get the list:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-linenumbers=\"false\" data-enlighter-theme=\"enlighter\" data-enlighter-language=\"xml\">\r\n# rados -p .users.uid ls | grep -v buckets\r\nuser1\r\nuser2\r\nuser3\r\n<\/pre>\n<p>And another way using radosgw-admin command (recently discovered): <\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-linenumbers=\"false\" data-enlighter-theme=\"enlighter\" data-enlighter-language=\"xml\">\r\n# radosgw-admin metadata list user\r\n[\r\n    &quot;user1&quot;,\r\n    &quot;user2&quot;,\r\n    &quot;user3&quot;\r\n\r\n]\r\n<\/pre>\n<pre class=\"EnlighterJSRAW\" data-enlighter-linenumbers=\"false\" data-enlighter-theme=\"enlighter\" data-enlighter-language=\"xml\">\r\n# radosgw-admin user info --uid=user1\r\n{\r\n    &quot;user_id&quot;: &quot;user1&quot;,\r\n    &quot;display_name&quot;: &quot;User 1&quot;,\r\n    &quot;email&quot;: &quot;&quot;,\r\n    &quot;suspended&quot;: 0,\r\n    &quot;max_buckets&quot;: 1000,\r\n    &quot;auid&quot;: 0,\r\n    &quot;subusers&quot;: [],\r\n    &quot;keys&quot;: [],\r\n    &quot;swift_keys&quot;: [],\r\n    &quot;caps&quot;: [],\r\n    &quot;op_mask&quot;: &quot;read, write, delete&quot;,\r\n    &quot;default_placement&quot;: &quot;&quot;,\r\n    &quot;placement_tags&quot;: [],\r\n    &quot;bucket_quota&quot;: {\r\n        &quot;enabled&quot;: false,\r\n        &quot;max_size_kb&quot;: -1,\r\n        &quot;max_objects&quot;: -1\r\n    },\r\n    &quot;user_quota&quot;: {\r\n        &quot;enabled&quot;: false,\r\n        &quot;max_size_kb&quot;: -1,\r\n        &quot;max_objects&quot;: -1\r\n    },\r\n    &quot;temp_url_keys&quot;: []\r\n}\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I haven&#8217;t found in the Ceph Object Gateway docs a command to get the radosgw active users, so I was looking for it and finally inspecting the objects inside the rados gateway pools, I found the way to get the list: # rados -p .users.uid ls | grep -v buckets user1 user2 user3 And another [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[156],"tags":[121,160],"_links":{"self":[{"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/posts\/1156"}],"collection":[{"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/comments?post=1156"}],"version-history":[{"count":7,"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/posts\/1156\/revisions"}],"predecessor-version":[{"id":1167,"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/posts\/1156\/revisions\/1167"}],"wp:attachment":[{"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/media?parent=1156"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/categories?post=1156"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/elkano.org\/blog\/wp-json\/wp\/v2\/tags?post=1156"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}