Octopus Deploy provides the most value when it is used by your whole team. Developers and testers might be allowed to deploy specific projects to pre-production environments, but not production environments. Stakeholders might be permitted to view certain projects, but not modify or deploy them. To support these scenarios, Octopus supports a permissions system based around the concept of Teams.
You can manage users from the Users tab under Configuration in the Octopus Deploy web portal.
You can manage teams from the Teams tab under Configuration in the Octopus Deploy web portal.
User and Service Accounts
Service accounts are API-only accounts that should be used for automated services that integrate with Octopus Deploy, and can only authenticate with an Octopus API key. For more information refer to Service accounts.
You should create a different User account for each person that will use Octopus Deploy. You should create a different Service account for each service that will integrate with Octopus Deploy.
To streamline the process of adding multiple users you can use the User invites feature to generate one or more unique registration codes bound to one or more existing teams. These links can then be issued to users so that they can register their own details and be given automatic permissions for the team(s) the codes are bound to.
Prior to version 4.0 this feature was accessed via the Invite users button on the Users page
In the example above, we are generating codes for the Octopus Administrators team, so anyone who uses one of the codes will automatically join that team when they have completed registration.
Invite codes are only valid for 48-hours after being generated, so make sure you issue them quickly before the expire.
Creating teams lets you assign the same roles to groups of users. Users can be added to or removed from multiple teams, making it easier to manage permissions for specific users and teams. You can create new teams by using the Add Team button.
For example, we can create a team that gives Anne and Bob access to view projects and deploy them to pre-production environments by assigning the role Project deployer to the team.
We limit which projects and environments these permissions apply to by adding specific projects and environments to the team.
Restricting Project and Project Group Access
When specifying both
Project Groups and
Projects filters please be aware that both these filters complement each other. To better illustrate these filters in action let's consider the following project structure:
|GroupA||Project1, Project2, Project3|
The following table illustrates the combination of possible permissions when specifying both
Project Groups and
||Project1, Project2, Project3, Project4 and Project5|
||Project4 and Project5|
|GroupA||Project5||Project1, Project2, Project3 and Project5|
|GroupB||Project4||Project4 and Project5|
Team members can be assigned the following roles:
- Project viewer: Project viewers have read-only access to a project. They can see the project in their dashboard, view releases and deployments.
- Project contributor: Project viewer, plus: editing and viewing variables and deployment steps.
- Project lead: Project contributor, plus: create releases (but not deploy them).
- Project deployer: Project contributor, plus: deploying releases (but not creating releases).
- Environment viewer: View environments and their machines, but not edit them.
- Environment manager: View and edit environments and their machines.
Note that project leads can create releases but not deploy them, while project deployers can deploy releases but not create them - this allows you assign these permissions independently. If you need members to be able to both create and deploy releases, you can add both roles.
The roles assigned by a team can be scoped by project or environment.
You can learn more about in our User Roles documentation
Octopus Deploy comes with several built-in teams.
The Everyone team always contains all users, but you can assign different roles to members of this Team (for example, you might allow everyone to view all projects and environments, but not edit anything). Out of the box, Everyone members can do nothing.
The second team is Octopus Administrators. Members of this team always have permission to do anything in Octopus. You can add or remove members from this team. We recommend only adding a few key users to this team.
The third team is Octopus Managers. Members of this team can do everything Octopus Administrators can do, except for certain system-level functions reserved for Octopus Administrators. You can also add or remove members from this team. We recommend adding users to this team who should be able to manage teams and other top-level things in Octopus, but not be able to change how Octopus is hosted.
In This Section
The following topics are explained further in this section: