- CLI Reference
- Commands
- ironflow role
ironflow role
Manage custom roles for enterprise authorization.
ironflow role <subcommand> [flags]Custom roles extend the three built-in roles (admin, developer, viewer) with organization-scoped roles that can have policies attached. See Custom Roles & CEL Policies for full details.
ironflow role create
Section titled “ironflow role create”Create a new custom role in an organization.
ironflow role create <name> [flags]Arguments:
| Argument | Required | Description |
|---|---|---|
name | Yes | Role name |
Flags:
| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
--org | string | Organization ID (required) | ||
--server | -s | string | Server URL override |
Output:
Created role: billing-team (id: role_a1b2c3d4)ironflow role list
Section titled “ironflow role list”List all roles, optionally filtered by organization.
ironflow role list [flags]Flags:
| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
--org | string | Filter by organization | ||
--json | bool | false | Output as JSON | |
--server | -s | string | Server URL override |
Output:
ID NAME ORG_ID DEFAULTrole_a1b2c3d4 admin org_default truerole_e5f6g7h8 developer org_default truerole_i9j0k1l2 viewer org_default truerole_m3n4o5p6 billing org_default falseironflow role get
Section titled “ironflow role get”Get detailed information about a role.
ironflow role get <id> [flags]Arguments:
| Argument | Required | Description |
|---|---|---|
id | Yes | Role ID |
Flags:
| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
--json | bool | false | Output as JSON | |
--server | -s | string | Server URL override |
Output:
ID: role_a1b2c3d4Name: billing-teamOrg ID: org_defaultDefault: falseironflow role delete
Section titled “ironflow role delete”Delete a custom role by its ID.
ironflow role delete <id> [flags]Arguments:
| Argument | Required | Description |
|---|---|---|
id | Yes | Role ID |
Flags:
| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
--server | -s | string | Server URL override |
Output:
Role deletedironflow role assign-policy
Section titled “ironflow role assign-policy”Assign a policy to a role.
ironflow role assign-policy <role_id> <policy_id> [flags]Arguments:
| Argument | Required | Description |
|---|---|---|
role_id | Yes | Role ID |
policy_id | Yes | Policy ID |
Flags:
| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
--server | -s | string | Server URL override |
Output:
Policy assigned to roleironflow role remove-policy
Section titled “ironflow role remove-policy”Remove a policy from a role.
ironflow role remove-policy <role_id> <policy_id> [flags]Arguments:
| Argument | Required | Description |
|---|---|---|
role_id | Yes | Role ID |
policy_id | Yes | Policy ID |
Flags:
| Flag | Short | Type | Default | Description |
|---|---|---|---|---|
--server | -s | string | Server URL override |
Output:
Policy removed from roleExamples:
# Create a custom roleironflow role create billing-team --org org_default
# List all rolesironflow role listironflow role list --org org_default --json
# Get role detailsironflow role get role_a1b2c3d4
# Assign a policy to a roleironflow role assign-policy role_a1b2c3d4 pol_x1y2z3
# Remove a policy from a roleironflow role remove-policy role_a1b2c3d4 pol_x1y2z3
# Delete a custom roleironflow role delete role_a1b2c3d4