fm iam
Reference for the fm iam command group (auto-generated from fm iam --help).
fm iam
text
Manage customer IAM access policies (ADR-0102).
Author least-privilege access policies for your API keys and workload identities,
bundle principals into groups, author the organization's custom roles (the
invite-flow permission presets), and test a policy before it takes effect.
Access policies and roles can only be managed from an interactive OIDC session
(fm auth login), never from an API key or workload token.
Usage:
fm iam [command]
Available Commands:
catalog List the operation catalog policies are written against
group Manage principal groups
policy Manage access policies
role Manage custom roles (invite-slot permission presets)
simulate Test whether a policy would allow an operation (dry-run)
Flags:
-h, --help[=true|false] help for iam
Global Flags:
--config string config file (default is $FM_CONFIG, else $HOME/.fm/config.yaml)
-d, --debug[=true|false] enable debug/verbose output
--no-color[=true|false] disable colored output
-o, --output string output format: table, json, yaml, wide (default "table")
-q, --quiet[=true|false] suppress non-essential output
--tenant string tenant ID to operate on (overrides the active/default tenant; also FM_TENANT)
Use "fm iam [command] --help" for more information about a command.fm iam catalog
text
List the append-only operation taxonomy (svc:resource:action) that access
policies are authored against. The catalog is served by the platform — no client
hardcodes a copy.
Use --filter to narrow the list (substring match).
Usage:
fm iam catalog [flags]
Flags:
--filter string only show operations containing this substring
-h, --help[=true|false] help for catalog
Global Flags:
--config string config file (default is $FM_CONFIG, else $HOME/.fm/config.yaml)
-d, --debug[=true|false] enable debug/verbose output
--no-color[=true|false] disable colored output
-o, --output string output format: table, json, yaml, wide (default "table")
-q, --quiet[=true|false] suppress non-essential output
--tenant string tenant ID to operate on (overrides the active/default tenant; also FM_TENANT)fm iam group
text
Manage principal groups
Usage:
fm iam group [command]
Aliases:
group, groups
Available Commands:
create Create a group
delete Delete a group
get Get a group
list List groups
member Manage group members
tags Read and replace a group's resource tags
update Update a group
Flags:
-h, --help[=true|false] help for group
Global Flags:
--config string config file (default is $FM_CONFIG, else $HOME/.fm/config.yaml)
-d, --debug[=true|false] enable debug/verbose output
--no-color[=true|false] disable colored output
-o, --output string output format: table, json, yaml, wide (default "table")
-q, --quiet[=true|false] suppress non-essential output
--tenant string tenant ID to operate on (overrides the active/default tenant; also FM_TENANT)
Use "fm iam group [command] --help" for more information about a command.fm iam group create
text
Create a principal group.
--tag (repeatable) sets the group's resource tags. The tenant's default tags are
merged in, a key you set winning — at create only; afterwards
"fm iam group tags set" replaces the whole set.
Examples:
fm iam group create --name deployers
fm iam group create --name deployers --tag env=prod
Usage:
fm iam group create [flags]
Flags:
--description string group description
-h, --help[=true|false] help for create
--name string group name (required)
--tag strings resource tag in key=value format (repeatable). The tenant's default tags are merged in; a key you set wins
Global Flags:
--config string config file (default is $FM_CONFIG, else $HOME/.fm/config.yaml)
-d, --debug[=true|false] enable debug/verbose output
--no-color[=true|false] disable colored output
-o, --output string output format: table, json, yaml, wide (default "table")
-q, --quiet[=true|false] suppress non-essential output
--tenant string tenant ID to operate on (overrides the active/default tenant; also FM_TENANT)fm iam group delete
text
Delete a group. Its membership and group attachments are removed with it.
Usage:
fm iam group delete <id> [flags]
Flags:
--force[=true|false] skip confirmation prompt
-h, --help[=true|false] help for delete
Global Flags:
--config string config file (default is $FM_CONFIG, else $HOME/.fm/config.yaml)
-d, --debug[=true|false] enable debug/verbose output
--no-color[=true|false] disable colored output
-o, --output string output format: table, json, yaml, wide (default "table")
-q, --quiet[=true|false] suppress non-essential output
--tenant string tenant ID to operate on (overrides the active/default tenant; also FM_TENANT)fm iam group get
text
Get a group
Usage:
fm iam group get <id> [flags]
Flags:
-h, --help[=true|false] help for get
Global Flags:
--config string config file (default is $FM_CONFIG, else $HOME/.fm/config.yaml)
-d, --debug[=true|false] enable debug/verbose output
--no-color[=true|false] disable colored output
-o, --output string output format: table, json, yaml, wide (default "table")
-q, --quiet[=true|false] suppress non-essential output
--tenant string tenant ID to operate on (overrides the active/default tenant; also FM_TENANT)fm iam group list
text
List the current tenant's principal groups.
--tag narrows the list to groups carrying every given key=value tag; the cursor
then pages over the filtered list.
Usage:
fm iam group list [flags]
Flags:
--all[=true|false] fetch all pages (auto-follow nextCursor)
--cursor string opaque pagination cursor from a previous response's nextCursor
-h, --help[=true|false] help for list
--limit int maximum items per page
--tag strings only groups with this tag, key=value (repeatable; every one must match; key= matches an empty value)
Global Flags:
--config string config file (default is $FM_CONFIG, else $HOME/.fm/config.yaml)
-d, --debug[=true|false] enable debug/verbose output
--no-color[=true|false] disable colored output
-o, --output string output format: table, json, yaml, wide (default "table")
-q, --quiet[=true|false] suppress non-essential output
--tenant string tenant ID to operate on (overrides the active/default tenant; also FM_TENANT)fm iam group member
text
Manage group members
Usage:
fm iam group member [command]
Aliases:
member, members
Available Commands:
add Add a principal to a group
list List a group's members
remove Remove a principal from a group
Flags:
-h, --help[=true|false] help for member
Global Flags:
--config string config file (default is $FM_CONFIG, else $HOME/.fm/config.yaml)
-d, --debug[=true|false] enable debug/verbose output
--no-color[=true|false] disable colored output
-o, --output string output format: table, json, yaml, wide (default "table")
-q, --quiet[=true|false] suppress non-essential output
--tenant string tenant ID to operate on (overrides the active/default tenant; also FM_TENANT)
Use "fm iam group member [command] --help" for more information about a command.fm iam group member add
text
Add an API key or workload identity to a group.
Examples:
fm iam group member add <group-id> --type api_key --id <key-id>
Usage:
fm iam group member add <group-id> [flags]
Flags:
-h, --help[=true|false] help for add
--id string principal id (required)
--type string principal type: api_key or workload_identity (required)
Global Flags:
--config string config file (default is $FM_CONFIG, else $HOME/.fm/config.yaml)
-d, --debug[=true|false] enable debug/verbose output
--no-color[=true|false] disable colored output
-o, --output string output format: table, json, yaml, wide (default "table")
-q, --quiet[=true|false] suppress non-essential output
--tenant string tenant ID to operate on (overrides the active/default tenant; also FM_TENANT)fm iam group member list
text
List a group's members
Usage:
fm iam group member list <group-id> [flags]
Flags:
--all[=true|false] fetch all pages (auto-follow nextCursor)
--cursor string opaque pagination cursor from a previous response's nextCursor
-h, --help[=true|false] help for list
--limit int maximum items per page
Global Flags:
--config string config file (default is $FM_CONFIG, else $HOME/.fm/config.yaml)
-d, --debug[=true|false] enable debug/verbose output
--no-color[=true|false] disable colored output
-o, --output string output format: table, json, yaml, wide (default "table")
-q, --quiet[=true|false] suppress non-essential output
--tenant string tenant ID to operate on (overrides the active/default tenant; also FM_TENANT)fm iam group member remove
text
Remove a principal from a group
Usage:
fm iam group member remove <group-id> [flags]
Flags:
-h, --help[=true|false] help for remove
--id string principal id (required)
--type string principal type: api_key or workload_identity (required)
Global Flags:
--config string config file (default is $FM_CONFIG, else $HOME/.fm/config.yaml)
-d, --debug[=true|false] enable debug/verbose output
--no-color[=true|false] disable colored output
-o, --output string output format: table, json, yaml, wide (default "table")
-q, --quiet[=true|false] suppress non-essential output
--tenant string tenant ID to operate on (overrides the active/default tenant; also FM_TENANT)fm iam group tags
text
Read and replace a group's resource tags
Usage:
fm iam group tags [command]
Aliases:
tags, tag
Available Commands:
get Show a group's resource tags
set Replace a group's resource tags
Flags:
-h, --help[=true|false] help for tags
Global Flags:
--config string config file (default is $FM_CONFIG, else $HOME/.fm/config.yaml)
-d, --debug[=true|false] enable debug/verbose output
--no-color[=true|false] disable colored output
-o, --output string output format: table, json, yaml, wide (default "table")
-q, --quiet[=true|false] suppress non-essential output
--tenant string tenant ID to operate on (overrides the active/default tenant; also FM_TENANT)
Use "fm iam group tags [command] --help" for more information about a command.fm iam group tags get
text
Show a group's resource tags
Usage:
fm iam group tags get <group-id> [flags]
Flags:
-h, --help[=true|false] help for get
Global Flags:
--config string config file (default is $FM_CONFIG, else $HOME/.fm/config.yaml)
-d, --debug[=true|false] enable debug/verbose output
--no-color[=true|false] disable colored output
-o, --output string output format: table, json, yaml, wide (default "table")
-q, --quiet[=true|false] suppress non-essential output
--tenant string tenant ID to operate on (overrides the active/default tenant; also FM_TENANT)fm iam group tags set
text
Replace a group's resource tags in place with exactly the given set
(replace semantics — any tag not listed is removed). Resource tags are your own
metadata for search and filtering: nothing else about the group changes, and
its members and attachments are not touched.
The set you pass IS the resulting set. To ADD one tag without disturbing the
others, read the current ones first with 'fm iam group tags get' and pass them all
back. Use --clear to remove every tag. The tenant's default tags are not
re-applied.
Keys beginning frostmoln_ or frostmoln- (any letter case) are reserved and
refused. At most 32 tags; a key is 1-64 bytes, a value at most 256 bytes.
Examples:
fm iam group tags set grp-123 --tag env=prod --tag owner=team-a
fm iam group tags set grp-123 --clear
Usage:
fm iam group tags set <group-id> --tag <key=value> [--tag <key=value> ...] [flags]
Flags:
--clear[=true|false] remove ALL tags (mutually exclusive with --tag)
-h, --help[=true|false] help for set
--tag strings tag in key=value format (repeatable; replace semantics)
Global Flags:
--config string config file (default is $FM_CONFIG, else $HOME/.fm/config.yaml)
-d, --debug[=true|false] enable debug/verbose output
--no-color[=true|false] disable colored output
-o, --output string output format: table, json, yaml, wide (default "table")
-q, --quiet[=true|false] suppress non-essential output
--tenant string tenant ID to operate on (overrides the active/default tenant; also FM_TENANT)fm iam group update
text
Update a group
Usage:
fm iam group update <id> [flags]
Flags:
--description string new group description
-h, --help[=true|false] help for update
--name string new group name
Global Flags:
--config string config file (default is $FM_CONFIG, else $HOME/.fm/config.yaml)
-d, --debug[=true|false] enable debug/verbose output
--no-color[=true|false] disable colored output
-o, --output string output format: table, json, yaml, wide (default "table")
-q, --quiet[=true|false] suppress non-essential output
--tenant string tenant ID to operate on (overrides the active/default tenant; also FM_TENANT)fm iam policy
text
Manage access policies
Usage:
fm iam policy [command]
Aliases:
policy, policies
Available Commands:
attach Attach a policy to a principal or group
attachments List a policy's attachments
create Create an access policy
delete Delete an access policy
detach Detach a policy from a principal or group
get Get an access policy
list List access policies
tags Read and replace a access policy's resource tags
update Update an access policy
Flags:
-h, --help[=true|false] help for policy
Global Flags:
--config string config file (default is $FM_CONFIG, else $HOME/.fm/config.yaml)
-d, --debug[=true|false] enable debug/verbose output
--no-color[=true|false] disable colored output
-o, --output string output format: table, json, yaml, wide (default "table")
-q, --quiet[=true|false] suppress non-essential output
--tenant string tenant ID to operate on (overrides the active/default tenant; also FM_TENANT)
Use "fm iam policy [command] --help" for more information about a command.fm iam policy attach
text
Attach an access policy to an API key, workload identity, or group.
Examples:
fm iam policy attach <policy-id> --type api_key --id <key-id>
fm iam policy attach <policy-id> --type group --id <group-id>
Usage:
fm iam policy attach <policy-id> [flags]
Flags:
-h, --help[=true|false] help for attach
--id string attachee id (required)
--type string attachee type: api_key, workload_identity, or group (required)
Global Flags:
--config string config file (default is $FM_CONFIG, else $HOME/.fm/config.yaml)
-d, --debug[=true|false] enable debug/verbose output
--no-color[=true|false] disable colored output
-o, --output string output format: table, json, yaml, wide (default "table")
-q, --quiet[=true|false] suppress non-essential output
--tenant string tenant ID to operate on (overrides the active/default tenant; also FM_TENANT)fm iam policy attachments
text
List a policy's attachments
Usage:
fm iam policy attachments <policy-id> [flags]
Flags:
--all[=true|false] fetch all pages (auto-follow nextCursor)
--cursor string opaque pagination cursor from a previous response's nextCursor
-h, --help[=true|false] help for attachments
--id string filter to one attachee id (with --type)
--limit int maximum items per page
--type string filter to one attachee type: api_key, workload_identity, or group (with --id)
Global Flags:
--config string config file (default is $FM_CONFIG, else $HOME/.fm/config.yaml)
-d, --debug[=true|false] enable debug/verbose output
--no-color[=true|false] disable colored output
-o, --output string output format: table, json, yaml, wide (default "table")
-q, --quiet[=true|false] suppress non-essential output
--tenant string tenant ID to operate on (overrides the active/default tenant; also FM_TENANT)fm iam policy create
text
Create a shared access policy from a policy document.
The document is a single access-policy object {schemaVersion, rules[]}. It is
validated and capped to your own authority server-side — you cannot author a
policy that grants more than you already hold.
Examples:
fm iam policy create --name read-only --document @policy.json
cat policy.json | fm iam policy create --name read-only --document -
fm iam policy create --name read-only --document '{"schemaVersion":"...","rules":[...]}'
fm iam policy create --name read-only --document @policy.json --tag env=prod
--tag (repeatable) sets the policy's resource tags. The tenant's default tags are
merged in, a key you set winning — at create only; afterwards
"fm iam policy tags set" replaces the whole set. Tags sit beside the document:
they never change what the policy allows or denies.
Usage:
fm iam policy create [flags]
Flags:
--description string policy description
--document string policy document: inline JSON, @file, or - for stdin (required)
-h, --help[=true|false] help for create
--name string policy name (required)
--tag strings resource tag in key=value format (repeatable). The tenant's default tags are merged in; a key you set wins
Global Flags:
--config string config file (default is $FM_CONFIG, else $HOME/.fm/config.yaml)
-d, --debug[=true|false] enable debug/verbose output
--no-color[=true|false] disable colored output
-o, --output string output format: table, json, yaml, wide (default "table")
-q, --quiet[=true|false] suppress non-essential output
--tenant string tenant ID to operate on (overrides the active/default tenant; also FM_TENANT)fm iam policy delete
text
Delete an access policy. Its attachments are removed with it.
Usage:
fm iam policy delete <id> [flags]
Flags:
--force[=true|false] skip confirmation prompt
-h, --help[=true|false] help for delete
Global Flags:
--config string config file (default is $FM_CONFIG, else $HOME/.fm/config.yaml)
-d, --debug[=true|false] enable debug/verbose output
--no-color[=true|false] disable colored output
-o, --output string output format: table, json, yaml, wide (default "table")
-q, --quiet[=true|false] suppress non-essential output
--tenant string tenant ID to operate on (overrides the active/default tenant; also FM_TENANT)fm iam policy detach
text
Detach a policy from a principal or group
Usage:
fm iam policy detach <policy-id> [flags]
Flags:
-h, --help[=true|false] help for detach
--id string attachee id (required)
--type string attachee type: api_key, workload_identity, or group (required)
Global Flags:
--config string config file (default is $FM_CONFIG, else $HOME/.fm/config.yaml)
-d, --debug[=true|false] enable debug/verbose output
--no-color[=true|false] disable colored output
-o, --output string output format: table, json, yaml, wide (default "table")
-q, --quiet[=true|false] suppress non-essential output
--tenant string tenant ID to operate on (overrides the active/default tenant; also FM_TENANT)fm iam policy get
text
Get an access policy
Usage:
fm iam policy get <id> [flags]
Flags:
-h, --help[=true|false] help for get
Global Flags:
--config string config file (default is $FM_CONFIG, else $HOME/.fm/config.yaml)
-d, --debug[=true|false] enable debug/verbose output
--no-color[=true|false] disable colored output
-o, --output string output format: table, json, yaml, wide (default "table")
-q, --quiet[=true|false] suppress non-essential output
--tenant string tenant ID to operate on (overrides the active/default tenant; also FM_TENANT)fm iam policy list
text
List the current tenant's access policies.
Results are cursor-paginated: when the output includes a non-empty nextCursor,
pass it back with --cursor to fetch the next page (or use --all).
--tag narrows the list to policies carrying every given key=value tag; the
cursor then pages over the filtered list.
Usage:
fm iam policy list [flags]
Flags:
--all[=true|false] fetch all pages (auto-follow nextCursor)
--cursor string opaque pagination cursor from a previous response's nextCursor
-h, --help[=true|false] help for list
--limit int maximum items per page
--tag strings only policies with this tag, key=value (repeatable; every one must match; key= matches an empty value)
Global Flags:
--config string config file (default is $FM_CONFIG, else $HOME/.fm/config.yaml)
-d, --debug[=true|false] enable debug/verbose output
--no-color[=true|false] disable colored output
-o, --output string output format: table, json, yaml, wide (default "table")
-q, --quiet[=true|false] suppress non-essential output
--tenant string tenant ID to operate on (overrides the active/default tenant; also FM_TENANT)fm iam policy tags
text
Read and replace a access policy's resource tags
Usage:
fm iam policy tags [command]
Aliases:
tags, tag
Available Commands:
get Show a access policy's resource tags
set Replace a access policy's resource tags
Flags:
-h, --help[=true|false] help for tags
Global Flags:
--config string config file (default is $FM_CONFIG, else $HOME/.fm/config.yaml)
-d, --debug[=true|false] enable debug/verbose output
--no-color[=true|false] disable colored output
-o, --output string output format: table, json, yaml, wide (default "table")
-q, --quiet[=true|false] suppress non-essential output
--tenant string tenant ID to operate on (overrides the active/default tenant; also FM_TENANT)
Use "fm iam policy tags [command] --help" for more information about a command.fm iam policy tags get
text
Show a access policy's resource tags
Usage:
fm iam policy tags get <policy-id> [flags]
Flags:
-h, --help[=true|false] help for get
Global Flags:
--config string config file (default is $FM_CONFIG, else $HOME/.fm/config.yaml)
-d, --debug[=true|false] enable debug/verbose output
--no-color[=true|false] disable colored output
-o, --output string output format: table, json, yaml, wide (default "table")
-q, --quiet[=true|false] suppress non-essential output
--tenant string tenant ID to operate on (overrides the active/default tenant; also FM_TENANT)fm iam policy tags set
text
Replace a access policy's resource tags in place with exactly the given set
(replace semantics — any tag not listed is removed). Resource tags are your own
metadata for search and filtering: nothing else about the access policy changes, and
what the policy allows or denies is not touched.
The set you pass IS the resulting set. To ADD one tag without disturbing the
others, read the current ones first with 'fm iam policy tags get' and pass them all
back. Use --clear to remove every tag. The tenant's default tags are not
re-applied.
A tag change is not a policy change: the document is not revalidated and the
version does not move. frn:resourceTag conditions never read a policy's own tags.
Keys beginning frostmoln_ or frostmoln- (any letter case) are reserved and
refused. At most 32 tags; a key is 1-64 bytes, a value at most 256 bytes.
Examples:
fm iam policy tags set pol-123 --tag env=prod --tag owner=team-a
fm iam policy tags set pol-123 --clear
Usage:
fm iam policy tags set <policy-id> --tag <key=value> [--tag <key=value> ...] [flags]
Flags:
--clear[=true|false] remove ALL tags (mutually exclusive with --tag)
-h, --help[=true|false] help for set
--tag strings tag in key=value format (repeatable; replace semantics)
Global Flags:
--config string config file (default is $FM_CONFIG, else $HOME/.fm/config.yaml)
-d, --debug[=true|false] enable debug/verbose output
--no-color[=true|false] disable colored output
-o, --output string output format: table, json, yaml, wide (default "table")
-q, --quiet[=true|false] suppress non-essential output
--tenant string tenant ID to operate on (overrides the active/default tenant; also FM_TENANT)fm iam policy update
text
Update an access policy's name, description, or document. Only the flags you
pass are changed.
Examples:
fm iam policy update <id> --name new-name
fm iam policy update <id> --document @policy.json
Usage:
fm iam policy update <id> [flags]
Flags:
--description string new policy description
--document string new policy document: inline JSON, @file, or - for stdin
-h, --help[=true|false] help for update
--name string new policy name
Global Flags:
--config string config file (default is $FM_CONFIG, else $HOME/.fm/config.yaml)
-d, --debug[=true|false] enable debug/verbose output
--no-color[=true|false] disable colored output
-o, --output string output format: table, json, yaml, wide (default "table")
-q, --quiet[=true|false] suppress non-essential output
--tenant string tenant ID to operate on (overrides the active/default tenant; also FM_TENANT)fm iam role
text
Manage the organization's custom roles — permission presets beyond the
system presets, seated ONLY through the invite flow (a created role becomes a
selectable slot in the invite picker immediately).
Every rule a role grants must sit within the author's own authority (the
authoring ceiling is server-side): a 403 ROLE_EXCEEDS_PERMISSIONS names the
exact rule that went beyond your own set. Deletion refuses while members hold
the role or a pending invitation offers it.
These commands need an interactive OIDC session (fm auth login), like the rest
of the IAM authoring plane.
Usage:
fm iam role [command]
Aliases:
role, roles
Available Commands:
create Create a custom role
delete Delete a custom role
effective-permissions Show a role's effective permission set
get Show one role row
list List this organization's roles (custom + system presets)
permissions List the grantable permission catalog
update Update a custom role
Flags:
-h, --help[=true|false] help for role
Global Flags:
--config string config file (default is $FM_CONFIG, else $HOME/.fm/config.yaml)
-d, --debug[=true|false] enable debug/verbose output
--no-color[=true|false] disable colored output
-o, --output string output format: table, json, yaml, wide (default "table")
-q, --quiet[=true|false] suppress non-essential output
--tenant string tenant ID to operate on (overrides the active/default tenant; also FM_TENANT)
Use "fm iam role [command] --help" for more information about a command.fm iam role create
text
Create an org-scoped custom role: a named permission preset that becomes
an invitable slot (an invite with that roleId seats its holder with exactly
its rules).
--permission (repeatable) names the granted rules in family:action form — use
"fm iam role permissions" to browse the catalog. System names (admin, owner,
member, viewer, billing) are refused; human-friendly labels ride
--display-name/--description.
Only rules your own authority covers are grantable: the server refuses the
rest and names the first rule that exceeds it.
Usage:
fm iam role create [flags]
Flags:
--description string what this role is for
--display-name string human-facing label shown in pickers and lists
-h, --help[=true|false] help for create
--name string role name, 3-50 characters; system names are refused (required)
--permission stringArray a granted rule in family:action form, e.g. compute:instances:read; repeat for each rule (required; "fm iam role permissions" lists the catalog)
Global Flags:
--config string config file (default is $FM_CONFIG, else $HOME/.fm/config.yaml)
-d, --debug[=true|false] enable debug/verbose output
--no-color[=true|false] disable colored output
-o, --output string output format: table, json, yaml, wide (default "table")
-q, --quiet[=true|false] suppress non-essential output
--tenant string tenant ID to operate on (overrides the active/default tenant; also FM_TENANT)fm iam role delete
text
Delete a custom role. The server refuses (409 ROLE_IN_USE or
ROLE_PENDING_INVITATION) while the role still seats members or is still
offered by a pending invitation — settle those first, then delete.
Usage:
fm iam role delete <role-id> [flags]
Flags:
--force[=true|false] skip confirmation prompt
-h, --help[=true|false] help for delete
Global Flags:
--config string config file (default is $FM_CONFIG, else $HOME/.fm/config.yaml)
-d, --debug[=true|false] enable debug/verbose output
--no-color[=true|false] disable colored output
-o, --output string output format: table, json, yaml, wide (default "table")
-q, --quiet[=true|false] suppress non-essential output
--tenant string tenant ID to operate on (overrides the active/default tenant; also FM_TENANT)fm iam role effective-permissions
text
Show a role's effective permission set
Usage:
fm iam role effective-permissions <role-id> [flags]
Flags:
-h, --help[=true|false] help for effective-permissions
Global Flags:
--config string config file (default is $FM_CONFIG, else $HOME/.fm/config.yaml)
-d, --debug[=true|false] enable debug/verbose output
--no-color[=true|false] disable colored output
-o, --output string output format: table, json, yaml, wide (default "table")
-q, --quiet[=true|false] suppress non-essential output
--tenant string tenant ID to operate on (overrides the active/default tenant; also FM_TENANT)fm iam role get
text
Show one role row
Usage:
fm iam role get <role-id> [flags]
Flags:
-h, --help[=true|false] help for get
Global Flags:
--config string config file (default is $FM_CONFIG, else $HOME/.fm/config.yaml)
-d, --debug[=true|false] enable debug/verbose output
--no-color[=true|false] disable colored output
-o, --output string output format: table, json, yaml, wide (default "table")
-q, --quiet[=true|false] suppress non-essential output
--tenant string tenant ID to operate on (overrides the active/default tenant; also FM_TENANT)fm iam role list
text
List the roles of the current tenant's organization: the org's custom
roles and the shared system presets, in one listing.
This is the tenant-plane list; the per-role one-liners and slot semantics the
invite flow uses come from the same rows, so what you see here is what the
invite picker offers.
Usage:
fm iam role list [flags]
Flags:
-h, --help[=true|false] help for list
Global Flags:
--config string config file (default is $FM_CONFIG, else $HOME/.fm/config.yaml)
-d, --debug[=true|false] enable debug/verbose output
--no-color[=true|false] disable colored output
-o, --output string output format: table, json, yaml, wide (default "table")
-q, --quiet[=true|false] suppress non-essential output
--tenant string tenant ID to operate on (overrides the active/default tenant; also FM_TENANT)fm iam role permissions
text
List every rule a custom role may carry, grouped by resource family —
the AllPermissions catalog (GET /permissions), the same source the portal's
role builder draws from.
Granting "family:*" covers every action in the family, including future ones:
grant the whole family only when the role genuinely needs it.
Usage:
fm iam role permissions [flags]
Flags:
--filter string only show rules containing this substring
-h, --help[=true|false] help for permissions
Global Flags:
--config string config file (default is $FM_CONFIG, else $HOME/.fm/config.yaml)
-d, --debug[=true|false] enable debug/verbose output
--no-color[=true|false] disable colored output
-o, --output string output format: table, json, yaml, wide (default "table")
-q, --quiet[=true|false] suppress non-essential output
--tenant string tenant ID to operate on (overrides the active/default tenant; also FM_TENANT)fm iam role update
text
Update a custom role's name, labels, or permission set.
MERGE-VS-REPLACE: the wire PATCH replaces displayName/description/permissions
wholesale, so this command reads the current row first and re-sends the
untouched fields' current values — only the flags you pass change anything.
That read-then-write is last-write-wins: a teammate's concurrent edit to the
fields you did NOT pass is overwritten with the values this command read at
its start. --permission (repeatable) REPLACES the whole set with exactly the
rules given (the wire has no add-single rule); omit it to keep the current
set.
A permission/write diff busts every holder's stamped authority at their next
token stamp, and a NARROWING set re-reviews every holder's group memberships
(the owners and admins get the digest).
Usage:
fm iam role update <role-id> [flags]
Flags:
--description string new description (unchanged when omitted)
--display-name string new human-facing label (unchanged when omitted)
-h, --help[=true|false] help for update
--name string new role name (unchanged when omitted)
--permission stringArray REPLACES the whole permission set with exactly these rules; omit to keep the current set
Global Flags:
--config string config file (default is $FM_CONFIG, else $HOME/.fm/config.yaml)
-d, --debug[=true|false] enable debug/verbose output
--no-color[=true|false] disable colored output
-o, --output string output format: table, json, yaml, wide (default "table")
-q, --quiet[=true|false] suppress non-essential output
--tenant string tenant ID to operate on (overrides the active/default tenant; also FM_TENANT)fm iam simulate
text
Dry-run the policy evaluator against a candidate document: "given this policy,
would OPERATION on TARGET (under these constraints) be allowed?". It never persists
or enforces — use it to confirm a policy's effect before saving it. Tags are
evaluated only where the live service resolves them; the result warns when
supplied tags were, or may live be, evaluated as unresolved. The platform does
not evaluate a region for any request yet, so --region is evaluated as
unresolved (a REGION_UNRESOLVED warning). Here --tenant is the frn:tenant
constraint, not the tenant to operate on (that is the active tenant or
FM_TENANT): the platform evaluates frn:tenant as the tenant the request is made
in, so --tenant must be that tenant and any other is refused.
Examples:
fm iam simulate --document @policy.json --operation compute:instances:read --target '*'
fm iam simulate --document @policy.json --operation storage:volumes:delete \
--target 'frn:storage:*:*:volumes/vol-123' --source-ip 203.0.113.7
Usage:
fm iam simulate [flags]
Aliases:
simulate, test
Flags:
--document string candidate policy document: inline JSON, @file, or - for stdin (required)
-h, --help[=true|false] help for simulate
--operation string operation to test, e.g. compute:instances:read (required)
--principal-type string hypothetical principal type constraint
--region string hypothetical region constraint; evaluated as unresolved, as the platform does (warns REGION_UNRESOLVED)
--request-tag strings hypothetical request tags in key=value format (comma-separated; "" = the request has none)
--resource-tag strings hypothetical resource tags in key=value format (comma-separated; "" = the resource has none)
--source-ip string hypothetical source IP constraint
--target string target FRN or * to test against (required)
--tenant string frn:tenant constraint (not the tenant to operate on: use the active tenant or FM_TENANT); must equal that tenant
Global Flags:
--config string config file (default is $FM_CONFIG, else $HOME/.fm/config.yaml)
-d, --debug[=true|false] enable debug/verbose output
--no-color[=true|false] disable colored output
-o, --output string output format: table, json, yaml, wide (default "table")
-q, --quiet[=true|false] suppress non-essential output