Roles
Nomatron is in early access. Some advanced workflows may not be covered in the public docs.
On this page
This file covers the roles command family.
Commands
nomatron roles listnomatron roles createnomatron roles readnomatron roles updatenomatron roles deletenomatron roles assignnomatron roles remove
When To Use Them
- Use roles when you need reusable permission bundles.
- Use
assignandremovewhen changing a user’s or group’s effective access.
How To Use Them
Create a role:
nomatron roles create \
--name deployer \
--permissions organization.app_jobs.plan \
--permissions organization.app_jobs.applyRepeat --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:
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:
nomatron roles listRead a role definition:
nomatron roles read --name deployerRemove a role assignment:
nomatron roles remove \
--role_name deployer \
--subject user:<user_id> \
--domain org:<organization_id>