Roles

Nomatron is in early access. Some advanced workflows may not be covered in the public docs.

This file covers the roles command family.

Commands

  • nomatron roles list
  • nomatron roles create
  • nomatron roles read
  • nomatron roles update
  • nomatron roles delete
  • nomatron roles assign
  • nomatron roles remove

When To Use Them

  • Use roles when you need reusable permission bundles.
  • Use assign and remove when changing a user’s or group’s effective access.

How To Use Them

Create a role:

bash
nomatron roles create \
  --name deployer \
  --permissions organization.app_jobs.plan \
  --permissions organization.app_jobs.apply

Repeat --permissions once per permission. Permission names use the <scope>.<resource>[.<subresource>].<action> form; run nomatron permissions list to see them. Custom roles are global-scope only.

Assign a role:

bash
nomatron roles assign \
  --role_name deployer \
  --subject user:<user_id> \
  --domain org:<organization_id>

--subject takes user:<user_id> or group:<group_id>. --domain is global, * (root only), or org:<organization_id> for an organization.

Examples

List roles:

bash
nomatron roles list

Read a role definition:

bash
nomatron roles read --name deployer

Remove a role assignment:

bash
nomatron roles remove \
  --role_name deployer \
  --subject user:<user_id> \
  --domain org:<organization_id>