Skip to content

af folder

Manage restricted folders and who can access them

A restricted folder, and everything under it, can be read and written only by the teams and people given access to it. A folder can also be restricted for writing only, so that everyone can still read it.

Usage

af folder [OPTIONS] <COMMAND>

Commands

Command What it does
list List restricted folders, and who can read and write in each
restrict Request that a folder be restricted
unrestrict Request that a folder’s restriction be removed
grant Request access to a restricted folder for a team or person
revoke Request that a team or person lose access to a restricted folder

Global options

Every af command also takes the global options.

Examples

af folder list
af folder restrict payroll --team payroll --reason "salary data"
af folder restrict docs/policies --person ada@example.com --only-writes --reason "policy has owners"

af folder list

List restricted folders, and who can read and write in each

Usage

af folder list [OPTIONS]

Global options

Every af command also takes the global options.

af folder restrict

Request that a folder be restricted

Restricts the folder, and everything under it, to the teams and people named. With –only-writes, everyone can still read it. Requires an administrator; it takes effect at once unless the forge requires a second administrator.

Usage

af folder restrict [OPTIONS] <FOLDER>

Arguments

  • <FOLDER>

    Path of the folder, from the repository root

Options

  • --only-writes

    Restrict writing only, so that everyone can still read the folder

  • --team <TEAMS>

    Team to give access, as the identity provider names the group; repeatable

  • --person <PEOPLE>

    Person to give access, by sign-in email; repeatable

  • --reason <REASON>

    Reason for the request, recorded with it

    Default: ""

Global options

Every af command also takes the global options.

af folder unrestrict

Request that a folder’s restriction be removed

Requires an administrator; it takes effect at once unless the forge requires a second administrator.

Usage

af folder unrestrict [OPTIONS] <FOLDER>

Arguments

  • <FOLDER>

    Path of the folder, from the repository root

Options

  • --reason <REASON>

    Reason for the request, recorded with it

    Default: ""

Global options

Every af command also takes the global options.

af folder grant

Request access to a restricted folder for a team or person

Approved by an administrator, or by someone else who already has access to the folder.

Usage

af folder grant [OPTIONS] <FOLDER>

Arguments

  • <FOLDER>

    Path of the folder, from the repository root

Options

  • --team <TEAM>

    Team to give access, as the identity provider names the group

  • --person <PERSON>

    Person to give access, by sign-in email

  • --reason <REASON>

    Reason for the request, recorded with it

    Default: ""

Global options

Every af command also takes the global options.

af folder revoke

Request that a team or person lose access to a restricted folder

Approved by an administrator, or by someone else who has access to the folder.

Usage

af folder revoke [OPTIONS] <FOLDER>

Arguments

  • <FOLDER>

    Path of the folder, from the repository root

Options

  • --team <TEAM>

    Team to remove access from, as the identity provider names the group

  • --person <PERSON>

    Person to remove access from, by sign-in email

  • --reason <REASON>

    Reason for the request, recorded with it

    Default: ""

Global options

Every af command also takes the global options.

Type to search…

↑↓ navigate↵ selectEsc close