How to get only Local Couchbase users or LDAP groups with Admin roles mapped on Couchbase cluster

Hi team ,

Anyone has script to to get only Admin Couchbase users or LDAP groups which has admin access on Couchbase cluster , I am looking for to get the details from list of clusters in a loop.

Thanks
Ram

curl -u Administrator:password localhost:8091/settings/rbac/users | jq .

If you want to get adventurous with jq :

curl -u Administrator:password localhost:8091/settings/rbac/users | jq '.[] | select(.roles[].role == "admin") | .id'

1 Like

Thank you @mreiche for the details

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.