N1QL or REST access to RBAC for CRUD ops

Talk about acronym soup :slight_smile: We’re trying to automate RBAC permissions assignment for just in time access to CRUD operations. Idea being that a user requests, and a manager approves temporary rights that allow CRUD ops, and the the permissions are automatically rolled back.

To do this, we would need to programmatically be able to modify RBAC perms, but we can’t find any documentation on how to do it. Thoughts?

The User Management section in the SDK show how to programmatically modify RBAC permissions:

For the REST API information that is covered in the API references section in the documentation:

Awesome, thanks! Looks like this will work great

Great to hear. Just note that as is pointed out in the docs, our SDK coverage of the user management REST interface is not intended as comprehensive. There may be more in the REST interface depending on version. It’s intended for test scaffolding.

If you run into something you need, please file an improvement issue and we’ll do our best to help!

@ingenthr @pvarley

The rest and python API all suggest only

What about modify an existing user ?