Hi friends, any tips on best practices for creatin...
# getting-started
s
Hi friends, any tips on best practices for creating users and groups and managing privileges? I was reading this (https://datahubproject.io/docs/authorization/policies) and although it is helpful it does not say a lot. For instance, I am using docker-compose to deploy Datahub and I do not have clear where the file
policies.json
and if I can manage it under git control? If you are aware of any further documentation, webinars or blogs on it please share!
e
Hey @square-hair-99480 you shouldn’t need to modify the
policies.json
in most cases. How are you hoping to add users, groups, and policies? Via the UI, or programatically?
s
Hi @echoing-airport-49548 for now I am using only the UI. But that is basically because I do not have clear how to do it programmatically. I thought that for doing so I had to use the file
policies.json
.
e
You shouldn’t need to use that file
You can also use our GraphQL API if you would like to add policies programatically
There are various endpoints like
createPolicy
that you can use! https://datahubproject.io/docs/graphql/mutations#createpolicy
s
Thanks @echoing-airport-49548 I will try it out!