Is there any api or some solution for mapped kibana indices name to per user for private tenant?

Hello?

Is there any api or some solution for mapped kibana indices name to per user for private tenant?

.kibana_<hash>_<username>

Of course i can use username to ditinguish but, if there is duplicated username exists it has some problem.

@jyl can you elaborate please on what you are trying to achieve?
The usernames are unique, therefore the hash would be unique too.
You can use jhashcode to get the hash for username with this