Is there API for mapping groups/users to roles

groups/users to roles can be configured by role_mapping.yaml file, but this requires ES restart to take effect. Is there any API can change group/user to role mapping dynamically.

I'll use ELK5 with x-pack

Yes, there are now APIs available for managing this.

There is not an API for role mapping yet. We have this API on our roadmap.

role_mapping.yaml file, but this requires ES restart to take effect

No restart is required. The files are monitored by elasticsearch and the changes will be detected and automatically updated.

perfect