Skip to main content

Overview

Permissions limit what actions specific members can take in your Squad. Assign different roles to create a secure and flexible multisig setup. Permissions and Roles

Permission Types

SDK Usage

The SDK provides a Permissions enum that abstracts permission complexity.

Permission Mappings

Permissions in the program are mappings of u8 values. When using the CLI or interacting directly with the program without the SDK, use these values:

Combining Permissions

Stack permissions by adding up the values:
  • Proposer + Voter: 1 + 2 = 3
  • Proposer + Executor: 1 + 4 = 5
  • Voter + Executor: 2 + 4 = 6
  • All (Proposer + Voter + Executor): 1 + 2 + 4 = 7

Example Configurations

Simple 2-of-3 Multisig

All members have full permissions:

Role-Based Multisig

Different members have different responsibilities:

See Also