Multi-tenancy: creating namespaces and adding users to namespaces

  1. Currently, there is no way to associate a unique identifier with the namespace ID. You can store that meta information in the default namespace. You will have to manage that yourself for now.
  2. Sorry, those docs for multi-tenancy lack some clarity. User for a specific namespace can be created by the guardian of that namespace. https://dgraph.io/docs/enterprise-features/multitenancy/#access-control-lists
  3. With multi-tenancy enabled, all the requests need to be authorized. You can perform namespace-specific operations by logging into the specific namespace (it would provide the JWT). You can also perform HTTP requests by setting the JWT in X-Dgraph-AccessToken header.