Manage Roles and Permissions
Roles in Boundary manage the permissions given to principals (Users/Groups). Roles can be defined at the global, org, or project scopes.
In this example, we're going to show you how to create a role in Boundary, assign that roles grants, and assign principals to the role.
Note that all resource IDs in this example are illustration only - IDs are uniquely generated for every resource upon creation with the exception being
generated resources in dev
mode. Please make sure to use the resource IDs that are generated when running this example. For example, if you run
boundary roles create
, use the resource ID of the role seen in stdout, not the ID in the example command.
Create a Role
Roles can live in the global, org, or project scopes. In this example we will create a role in the generated org scope in dev
mode.
Assign Principals to a Role
Users and groups are granted permissions to perform actions by assigning them to a role.
Assign Grants to a Role
Grants describe the actions that the principals should be allowed to perform. For more information on how to format grants see Permission Grant Formats. In this example we give a role read and list permissions to all resources.