Configuring user and groups using API

I have a long list of users and groups that need to be configured into camunda. Is there a Java API/Rest API available that I can use to configure programmatically without needing to go through the UI

Have a look at the REST API reference: