How to create an API Key with current user credentials?

Hey,
I would like to create an API Key on the ui/server side of my plugin without having to pass any credentials/authorization. I would like to create an API Key based on the credentials that user has input while loading Kibana on startup. Is there any plugin or function I can use to create api key without passing the credential and create it based on the current user.
Can anyone help me in this?

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