Skip to main content

Add a Namespace Configuration

The follow code snippet(s) show how to introduce a new namespace configuration.

grpcurl -plaintext -d \
'{
"config": {
"name": "groups",
"relations": [
{"name": "member"}
]
}
}' localhost:50052 authorizer.accesscontroller.v1alpha1.NamespaceConfigService.WriteConfig

Verify it was written by reading it back.

grpcurl -plaintext -d '{"namespace": "groups"}' localhost:50052 authorizer.accesscontroller.v1alpha1.NamespaceConfigService.ReadConfig

For more information on the API endpoint take a look at the API Reference.