Skip to content

Suggested searches

    Search all documentation ↑↓ to navigate Enter to open Esc to close

    prb access-review command reference

    Reference for 27 commands under prb access-review, including usage, flag types and defaults, required flags, source examples, and implementation links

    Markdown

    Manage access reviews. This page documents 27 commands under prb access-review.

    Flags and examples below come from the command definitions. A Required flag is explicitly marked required by Cobra; an unmarked flag can still be needed by runtime validation or a non-interactive workflow. Empty strings and empty lists are registered defaults, not sample values.

    Every command also inherits the global flags. Run prb <command> --help to check your installed version. Replace placeholder IDs and names in source examples before running them. Return to the complete CLI command reference to browse another command.

    CommandDescriptionUsageSource
    prb access-reviewManage access reviews.prb access-review <command>View implementation
    prb access-review campaignManage access review campaigns.prb access-review campaign <command>View implementation
    prb access-review campaign add-sourceAdd a scope source to an access review campaign.prb access-review campaign add-source <campaign-id>View implementation
    prb access-review campaign cancelCancel an access review campaign.prb access-review campaign cancel <id>View implementation
    prb access-review campaign closeClose an access review campaign.prb access-review campaign close <id>View implementation
    prb access-review campaign createCreate an access review campaign.prb access-review campaign createView implementation
    prb access-review campaign deleteDelete an access review campaign.prb access-review campaign delete <id>View implementation
    prb access-review campaign listList access review campaigns.prb access-review campaign listView implementation
    prb access-review campaign remove-sourceRemove a scope source from an access review campaign.prb access-review campaign remove-source <campaign-id>View implementation
    prb access-review campaign retry-fetchRetry the failed fetch of a source in an access review campaign.prb access-review campaign retry-fetch <campaign-id>View implementation
    prb access-review campaign startStart an access review campaign.prb access-review campaign start <id>View implementation
    prb access-review campaign updateUpdate an access review campaign.prb access-review campaign update <campaign-id>View implementation
    prb access-review campaign viewView an access review campaign.prb access-review campaign view <id>View implementation
    prb access-review entryManage access review entries.prb access-review entry <command>View implementation
    prb access-review entry decideRecord a decision on an access entry.prb access-review entry decide <entry-id>View implementation
    prb access-review entry decide-allRecord decisions on multiple access entries.prb access-review entry decide-allView implementation
    prb access-review entry flagFlag an access entry.prb access-review entry flag <entry-id>View implementation
    prb access-review entry listList access entries for a campaign or campaign source.prb access-review entry list [<campaign-id>]View implementation
    prb access-review sourceManage access sources.prb access-review source <command>View implementation
    prb access-review source createCreate an access source.prb access-review source createView implementation
    prb access-review source deleteDelete an access source.prb access-review source delete <id>View implementation
    prb access-review source listList access sources.prb access-review source listView implementation
    prb access-review source setup-awsShow AWS access source setup values.prb access-review source setup-awsView implementation
    prb access-review source setup-azureShow Azure access source setup values.prb access-review source setup-azureView implementation
    prb access-review source setup-gcpShow GCP access source setup values.prb access-review source setup-gcpView implementation
    prb access-review source updateUpdate an access source.prb access-review source update <source-id>View implementation
    prb access-review source viewView an access source.prb access-review source view <id>View implementation

    Manage access reviews.

    prb access-review <command>

    View command implementation.

    Manage access review campaigns.

    prb access-review campaign <command>

    View command implementation.

    Add a scope source to an access review campaign.

    prb access-review campaign add-source <campaign-id>

    Requires 1 positional argument.

    FlagTypeDefaultRequiredDescription
    --source-idstring""RequiredAccess source ID to add (required)

    View command implementation.

    Cancel an access review campaign.

    prb access-review campaign cancel <id>

    Requires 1 positional argument.

    FlagTypeDefaultRequiredDescription
    --yes, -ybooleanfalse—Skip confirmation prompt

    View command implementation.

    Close an access review campaign.

    prb access-review campaign close <id>

    Requires 1 positional argument.

    FlagTypeDefaultRequiredDescription
    --yes, -ybooleanfalse—Skip confirmation prompt

    View command implementation.

    Create an access review campaign.

    prb access-review campaign create

    Accepts no positional arguments.

    FlagTypeDefaultRequiredDescription
    --descriptionstring""—Campaign description
    --namestring""RequiredCampaign name (required)
    --orgstring""—Organization ID
    --source-idstring list[]—Access source IDs to include (can be repeated)

    View command implementation.

    Delete an access review campaign.

    prb access-review campaign delete <id>

    Requires 1 positional argument.

    FlagTypeDefaultRequiredDescription
    --yes, -ybooleanfalse—Skip confirmation prompt

    View command implementation.

    List access review campaigns.

    prb access-review campaign list

    Accepts no positional arguments.

    FlagTypeDefaultRequiredDescription
    --afterstring""—Cursor from the previous page (the Next cursor line)
    --jsonbooleanfalse—Output JSON (same as —output json)
    --limit, -Linteger30—Maximum number of campaigns to list
    --order-bystring""—Order by field (CREATED_AT)
    --order-directionstring"DESC"—Sort direction (ASC, DESC)
    --orgstring""—Organization ID
    --output, -ostring""—Output format: json, table (default)

    View command implementation.

    Remove a scope source from an access review campaign.

    prb access-review campaign remove-source <campaign-id>

    Requires 1 positional argument.

    FlagTypeDefaultRequiredDescription
    --source-idstring""RequiredAccess source ID to remove (required)

    View command implementation.

    Retry the failed fetch of a source in an access review campaign.

    prb access-review campaign retry-fetch <campaign-id>

    Requires 1 positional argument.

    FlagTypeDefaultRequiredDescription
    --source-idstring""RequiredAccess source ID whose fetch failed (required)

    View command implementation.

    Start an access review campaign.

    prb access-review campaign start <id>

    Requires 1 positional argument.

    FlagTypeDefaultRequiredDescription
    --yes, -ybooleanfalse—Skip confirmation prompt

    View command implementation.

    Update an access review campaign.

    prb access-review campaign update <campaign-id>

    Requires 1 positional argument.

    FlagTypeDefaultRequiredDescription
    --descriptionstring""—Campaign description
    --jsonbooleanfalse—Output JSON (same as —output json)
    --namestring""—Campaign name
    --output, -ostring""—Output format: json, table (default)

    View command implementation.

    View an access review campaign.

    prb access-review campaign view <id>

    Requires 1 positional argument.

    FlagTypeDefaultRequiredDescription
    --jsonbooleanfalse—Output JSON (same as —output json)
    --output, -ostring""—Output format: json, table (default)

    View command implementation.

    Manage access review entries.

    prb access-review entry <command>

    View command implementation.

    Record a decision on an access entry.

    prb access-review entry decide <entry-id>

    Requires 1 positional argument.

    FlagTypeDefaultRequiredDescription
    --decisionstring""RequiredDecision to record (APPROVED, REVOKE, DEFER, ESCALATE)
    --jsonbooleanfalse—Output JSON (same as —output json)
    --notestring""—Decision note
    --output, -ostring""—Output format: json, table (default)
    Terminal window
    # Approve an access entry
    prb access-review entry decide <entry-id> --decision APPROVED
    # Revoke with a note
    prb access-review entry decide <entry-id> --decision REVOKE --note "User left the company"
    # Defer a decision
    prb access-review entry decide <entry-id> --decision DEFER --note "Need more context"

    View command implementation.

    Record decisions on multiple access entries.

    prb access-review entry decide-all

    Accepts no positional arguments.

    FlagTypeDefaultRequiredDescription
    --decisionstring""RequiredDecision to record (APPROVED, REVOKE, DEFER, ESCALATE)
    --entry-idstring list[]RequiredAccess entry IDs (can be repeated)
    --jsonbooleanfalse—Output JSON (same as —output json)
    --notestring""—Decision note (applied to all entries)
    --output, -ostring""—Output format: json, table (default)
    Terminal window
    # Approve multiple entries
    prb access-review entry decide-all --entry-id <id1> --entry-id <id2> --decision APPROVED
    # Revoke multiple entries with a note
    prb access-review entry decide-all --entry-id <id1> --entry-id <id2> --decision REVOKE --note "Batch cleanup"

    View command implementation.

    Flag an access entry.

    prb access-review entry flag <entry-id>

    Requires 1 positional argument.

    FlagTypeDefaultRequiredDescription
    --flagsstring list[]RequiredFlags to set (ORPHANED, INACTIVE, EXCESSIVE, ROLE_MISMATCH, NEW, etc.)
    --jsonbooleanfalse—Output JSON (same as —output json)
    --output, -ostring""—Output format: json, table (default)
    --reasonstring""—Reason for flagging
    Terminal window
    # Flag an entry as orphaned
    prb access-review entry flag <entry-id> --flags ORPHANED --reason "No matching identity"
    # Flag an entry with multiple flags
    prb access-review entry flag <entry-id> --flags ORPHANED,INACTIVE --reason "No login in 90 days"
    # Clear all flags
    prb access-review entry flag <entry-id> --flags ""

    View command implementation.

    List access entries for a campaign or campaign source.

    prb access-review entry list [<campaign-id>]

    Accepts at most 1 positional argument.

    FlagTypeDefaultRequiredDescription
    --account-typestring""—Filter by account type (USER, SERVICE_ACCOUNT)
    --activebooleanfalse—Filter by active status at the source
    --afterstring""—Cursor from the previous page (the Next cursor line)
    --auth-methodstring""—Filter by auth method (SSO, PASSWORD, API_KEY, OAUTH2, SSH, SERVICE_ACCOUNT, UNKNOWN)
    --decisionstring""—Filter by decision (PENDING, APPROVED, REVOKE, DEFER, ESCALATE)
    --flagstring""—Filter by flag (NONE, ORPHANED, INACTIVE, EXCESSIVE, ROLE_MISMATCH, NEW)
    --is-adminbooleanfalse—Filter by admin status
    --jsonbooleanfalse—Output JSON (same as —output json)
    --limit, -Linteger30—Maximum number of entries to list
    --order-bystring""—Order by field (CREATED_AT)
    --order-directionstring"DESC"—Sort direction (ASC, DESC)
    --output, -ostring""—Output format: json, table (default)
    --source-idstring""—Campaign source ID to list entries for
    Terminal window
    # List all entries for a campaign
    prb access-review entry list <campaign-id>
    # List entries for a specific campaign source
    prb access-review entry list --source-id <campaign-source-id>
    # List only pending entries
    prb access-review entry list <campaign-id> --decision PENDING
    # List flagged entries
    prb access-review entry list <campaign-id> --flag ORPHANED

    View command implementation.

    Manage access sources.

    prb access-review source <command>

    View command implementation.

    Create an access source.

    prb access-review source create

    Accepts no positional arguments.

    Connect the provider first. Create the connector with prb connector create, or with prb connector connect for AWS, GCP, or Azure workload identity, then pass that connector id here. This operation does not collect credentials.
    A CSV source is the path with no provider.
    FlagTypeDefaultRequiredDescription
    --connector-account-idstring""—Connector account ID (defaults to the account named by the connector, or its only account)
    --connector-idstring""—Connector ID. Connect the provider first; this command does not collect credentials.
    --csv-filestring""—Path to CSV file with access data. A CSV source has no provider.
    --namestring""RequiredAccess source name (required)
    --orgstring""—Organization ID
    Terminal window
    # Create an access source from a connector that already exists
    prb access-review source create --name "GitHub" --connector-id <connector-id>
    # Create an access source for one account on that connector
    prb access-review source create --name "GitHub" --connector-id <connector-id> \
    --connector-account-id <connector-account-id>
    # Create an access source from a CSV file
    prb access-review source create --name "Okta Users" --csv-file users.csv

    View command implementation.

    Delete an access source.

    prb access-review source delete <id>

    Requires 1 positional argument.

    FlagTypeDefaultRequiredDescription
    --yes, -ybooleanfalse—Skip confirmation prompt

    View command implementation.

    List access sources.

    prb access-review source list

    Accepts no positional arguments.

    FlagTypeDefaultRequiredDescription
    --afterstring""—Cursor from the previous page (the Next cursor line)
    --jsonbooleanfalse—Output JSON (same as —output json)
    --limit, -Linteger30—Maximum number of access sources to list
    --order-bystring""—Order by field (CREATED_AT)
    --order-directionstring"DESC"—Sort direction (ASC, DESC)
    --orgstring""—Organization ID
    --output, -ostring""—Output format: json, table (default)

    View command implementation.

    Show AWS access source setup values.

    prb access-review source setup-aws

    Accepts no positional arguments.

    FlagTypeDefaultRequiredDescription
    --orgstring""—Organization ID

    View command implementation.

    Show Azure access source setup values.

    prb access-review source setup-azure

    Accepts no positional arguments.

    FlagTypeDefaultRequiredDescription
    --orgstring""—Organization ID

    View command implementation.

    Show GCP access source setup values.

    prb access-review source setup-gcp

    Accepts no positional arguments.

    FlagTypeDefaultRequiredDescription
    --orgstring""—Organization ID

    View command implementation.

    Update an access source.

    prb access-review source update <source-id>

    Requires 1 positional argument.

    FlagTypeDefaultRequiredDescription
    --connector-idstring""—Connector ID to use as data source
    --csv-filestring""—Path to CSV file with access data
    --jsonbooleanfalse—Output JSON (same as —output json)
    --namestring""—Access source name
    --output, -ostring""—Output format: json, table (default)

    View command implementation.

    View an access source.

    prb access-review source view <id>

    Requires 1 positional argument.

    FlagTypeDefaultRequiredDescription
    --jsonbooleanfalse—Output JSON (same as —output json)
    --output, -ostring""—Output format: json, table (default)

    View command implementation.