Can we create roles and users using JAVA api

Can we create roles and users for kibana using Java API ?

Is there any link for documentation of such api?

I have X-pack enabled.

Hello ,
oh I assume you are referring creating roles and users via ?

unfortunately, i haven't done so using that client to know if it's possible or not. Usually, those language clients end up calling the actual APIs. Just out of curiosity are you using Java API client ?

Another easier way would be to use Security APIs to create users and roles:


Hi Rashmi,

I am looking for security operation or user/roles management using java api.

So, you can get a handle to the java api client via

beyond that, you will have to read the source here:


Hi Rashmi,
Thank you. I was looking for only.

1 Like

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