How to add external users using REST API?

Hi all,
I want to map AWS IAM users with Couchbase external users. For that, I have set up the LDAP to Couchbase configuration. So for that, I want to add External Users to Couchbase whenever the new user created in AWS IAM (i.e. in LDAP) using REST API. So Is there any such API is available? Please help me.

Hi @puja.neve,

Assuming you are using Couchbase Server 5.x+, there is a REST API available to create new users: https://developer.couchbase.com/documentation/server/current/rest-api/rbac.html