How to add users and setup permissions?

Hi. I want to use grafana as stateless app, using grafana docker image and provision abilities. I already know how to setup dashboards and datasources. Then i want to save users and dashboard permissions for them. How to do this?