Skip to content

Conversation

cmdrrobin
Copy link

The /admin/user?format=json&list only output the first 1000 users that it come across. /admin/metadata/user?format=json will output all users.

The official Go library for Ceph still uses "metadata/user" for listing all users. (https://github.com/ceph/go-ceph/blob/master/rgw/admin/user.go#L136-L149)

This will fix issue #48

The `/admin/user?format=json&list` only output the first 1000 users that
it come across. `/admin/metadata/user?format=json` will output all
users.

The official Go library for Ceph still uses "metadata/user" for listing
all users. (https://github.com/ceph/go-ceph/blob/master/rgw/admin/user.go#L136-L149)
@cmdrrobin cmdrrobin changed the title fix(get_rgw_users): use metadata query for listing users (#48) fix(get_rgw_users): use metadata query for listing users Aug 7, 2024
@k0ste
Copy link
Contributor

k0ste commented Aug 7, 2024

The max-entries=1000, is by design. The real fix is a adding support to query the next users via marker (marker is returned with API answer`)

admin/user?list&max-entries=100&marker=<marker>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants