Create User and associate acls of resource from java application using admin client

I have a use case where I want to create Kafka user from java application in run time and associate ACLs for particular resources, is it doable and how can i achieve that?

Create User and associate ACLs of resource from java application using admin client

I think you would use Admin.createAcls(...).

This category (Kafka Streams) it not the right one to ask this question though. I think it would be easier to get help if you ask in the Clients category.