I am figuring out the couchbase java SDK 3.3 and how to manage users. Using the User Management documentation, I can run this snippet of code:
# Example Read Only User
User user = new User(testUsername).password(userPassword);
user.roles(new Role("data_reader","*"),new Role("query_select","*"));
cluster.users().upsertUser(user);
My question is it possible to create a user this way with administrator privileges (security, cluster, full, etc.), add the user to an existing group (which looking at lack of a Group field in the User object from the SDK, I don't think so), or are there additional privileges assignable other than Data Reader/Writer and Query Select/Insert/Delete/Manage Index