Skip to content

Action reference

Every action that a policy statement can name, by resource kind, and what the default Editor and Viewer policies allow.

Updated

A statement names actions from the list for its resource’s kind. The checker refuses an action that the kind doesn’t have, with the closest name as a suggested fix. For how a statement uses them, see Writing policies.

The Editor and Viewer columns show what the default policies of those names allow when an org is created. The default Admin policy allows every action on this page. See Default policies.

Models

A model’s records. Conditions on these statements read the record, so they can decide single records. Written as model("integrations.procore.Invoice"), model("ProjectMember"), or models for every model.

Action What it allows Editor Viewer
read Read the model’s records wherever they appear: lists, search, counts, aggregates, single records, tags, diffs, history, merge conflicts, and CI findings. Yes Yes
create Create a record. A bulk upsert needs both create and update. Yes
update Change a record. The condition runs on the record before and after the change. Yes
delete Delete a record. A cascade checks update or delete on every record that it reaches, and a write checks update on every record whose formula it recomputes. Yes
tag Add a tag to a record. Yes
untag Remove a tag from a record. Yes

Schema

A model’s definition: the model itself and its custom fields. Written as schema("integrations.procore.Invoice"), schema("ProjectMember"), or schemas for every model.

Action What it allows Editor Viewer
read List the model among the repo’s custom models. Yes Yes
create Create the model, or add a custom field to it.
update Change the model or one of its custom fields.
delete Delete the model or one of its custom fields.

The repo

The repo that a policy decides in. Every action inside a repo also needs read on the repo. Written as repo.

Action What it allows Editor Viewer
read See the repo, its branches, its tag families and tags, and its webhooks and mailboxes. Without it, every request about the repo answers RepoNotFound. Yes Yes
update Archive or unarchive the repo, and change its description.
readHistory Read commits, diffs, checkpoints, change requests, and merge checks. The records in them still follow each model’s read rules. Yes Yes
createBranches Create a branch. Yes
deleteBranches Delete a branch. Yes
restoreBranches Restore a deleted branch. Yes
commit Commit a branch’s working state. A commit that publishes an extension also needs publish on it. Yes
discard Discard a branch’s working state. Yes
manageCheckpoints Create and delete checkpoints. Yes
createChangeRequests Open a change request. Yes
comment Comment on a change request. Yes
closeChangeRequests Close or reopen a change request. Yes
merge Merge a change request. The merger also needs the actions that writing each change takes: on records, schema, CI checks, tag families and tags, extensions, installations, schedules, and agent context. Yes
readAttachments Download file attachments. Yes Yes
uploadAttachments Upload file attachments. Yes
manageTags Create, change, and delete tag families and tags. Yes
readCi Read CI checks and their runs. Yes Yes
manageCi Create, change, and delete CI checks.
managePolicies Read and change the repo’s own policies. Only an org policy grants it, because repo policies can’t allow.

Extension source

An extension that the repo defines: its declaration and source files. Written as extension("integrations.procore"), or extensions for every extension.

Action What it allows Editor Viewer
read Read the extension, its files, publications, events, and UI errors. Yes Yes
create Create the extension, or add a file to it.
update Change the extension’s declaration and files, clear its UI errors, and publish its events and room broadcasts.
delete Delete the extension, or one of its files.
publish Commit a change that publishes a version of the extension to the registry.

Installations

An extension that the repo installs from the registry. Written as installation("integrations.procore"), or installations for every installation.

Action What it allows Editor Viewer
read Read the installation, its schedules and triggers, and its webhook and email deliveries. Yes Yes
manage Install, update, or uninstall the extension, subscribe it to webhooks and mailboxes, and rotate its webhook secrets.
bindConnections Bind the org’s third-party connections to the installation.
share Share the installation’s UI publicly, so anyone with the share’s address opens it as the extension’s guest, and revoke its shares.

Tools

An extension’s tools. Conditions on these statements read resource.extension, resource.installation, and resource.name. Written as tool("integrations.procore/sync_projects"), tools("integrations.procore") for every tool of one extension, or allTools.

Action What it allows Editor Viewer
call Call the tool. Webhook and email deliveries check call for the user who installed the extension, or who published the version on main of one that the repo defines.

Workflows

An extension’s durable workflows. Written as workflow("integrations.procore/close_month"), or workflows for every workflow.

Action What it allows Editor Viewer
run Start a run.
signal Answer a run that waits for a signal.
terminate End a run before it finishes.
readRuns List and read runs. Yes Yes

Schedules

An extension’s cron schedules. Written as schedule("integrations.procore/nightly_sync"), or schedules for every schedule.

Action What it allows Editor Viewer
manage Turn the schedule on or off.
run Run the schedule now. Each run also checks run for the extension, which the run acts as.
readRuns List the schedule’s runs.

Triggers

An extension’s branch triggers. Written as trigger("integrations.procore/invoice_created"), or triggers for every trigger.

Action What it allows Editor Viewer
manage Named for managing a trigger. No request checks it.
run Run the trigger by hand. Each run also checks run for the extension, which the run acts as.
readRuns List the trigger’s runs.

Rooms

An extension’s realtime rooms, which its UI’s pages join. Members who can open the UI and read the repo join without this check; only a public share’s guests need join. Conditions on these statements read resource.extension, resource.installation, and resource.name. Written as room("integrations.procore/board"), rooms("integrations.procore") for every room of one extension, or allRooms.

Action What it allows Editor Viewer
join Join the room from a public share’s page, as the extension’s guest. No built-in policy allows it.

Agent instructions

The repo’s AGENTS.md files, including the ones that its extensions hold, and the repo’s README. Written as agentInstructions.

Action What it allows Editor Viewer
read Read agent instructions and the README. Yes Yes
manage Create, change, and delete agent instructions, and write the README.

Agent skills

The repo’s agent skills and their files, including the ones that its extensions hold. Written as agentSkills.

Action What it allows Editor Viewer
read Read agent skills and their files. Yes Yes
manage Create, change, and delete agent skills and their files.

The org

The org itself. Only the org pass decides these actions, so only an org policy that covers every repo can name org. Written as org.

Action What it allows Editor Viewer
read Read the org, its registry of extensions, its providers, and its repos’ connection bindings. Yes Yes
update Rename the org.
delete Delete the org.
listRepos List the org’s repos. The list holds only the repos that the user can read. Yes Yes
createRepos Create a repo.
readMembers List the org’s members. Yes Yes
inviteMembers Add a member to the org.
updateMembers Make a member an owner, or step one down. Only an owner can, so this action allows nothing on its own.
removeMembers Remove another member from the org. Any member can leave without it.
readGroups Read the groups and who is in each. Yes Yes
manageGroups Create, rename, and delete groups, and change who is in them. Joining a group grants what the group’s policies grant, so this is as sensitive as managePolicies.
readPolicies Read every policy, except the policies of a repo that the user can’t read. Simulating, explaining, and diffing also need readMembers.
managePolicies Create, change, restore, and delete every policy in the org.
readConnections List the org’s third-party connections.
createConnections Connect a third-party service.
deleteConnections Remove a connection.
manageOAuthClients List, register, and remove the org’s OAuth clients.
readBilling Read the org’s plan and the state of its subscription.
manageBilling Start a checkout to upgrade the org’s plan, and open the billing portal, which changes and cancels the subscription and shows its invoices.

Type to search…

↑↓ navigate↵ selectEsc close