The permissions structure is described in the blog Quickly add permission checks to your ASP.NET apps .
Alternatively, the setup.sh script creates these structures via the API.
There is also a seeding.sh script that puts some demo data into Permissions.
Both scripts ask for the needed credentials / information.
To avoid having to enter them again and again, create a secrets.json that looks like this:
{
"permissionsUrl": "",
"apiKey": "",
"projectId": "",
"environmentId": "",
"clientId": "",
"clientSecret": ""
}Then run the scripts with the --secrets-from-file flag.