Create user with security roles using API

Hi,
I know you can create user with the security api and assign them backend roles:

PUT _opendistro/_security/api/internalusers/<username>
{
  "password": "kirkpass",
  "backend_roles": ["captains", "starfleet"],
}

But is it possible to assign Open Distro Security Roles (roles created in Kibana ui)

Thanks

Hello @user100

According to documentation, you can use opendistro_security_roles in PUT API request.