Groups
Groups organize your environments in Portainer. As an example, you can create groups for development, staging and production to differentiate between environment roles. You can also use groups to define which environments are available to which users.
Adding a group
From the menu expand Environment-related, select Groups, then click Add group.

Define the properties of the group, using the table below as a guide.
Name
Give the group a descriptive name.
Description
Optionally describe the group in more detail.
Tags
Apply any tags to the group.
Associated environments
Select the environments to be categorized in the group.

When you're finished, click Create the group.
Removing a group
When you no longer need a group, you can remove it by ticking the box next to the group then clicking Remove.
Manage policies of a group
Policies allow you to apply configuration, security rules, and cluster settings to groups of environments, rather than configuring each environment individually. Note that the policies feature is experimental and must be turned on in settings before it can be used.
To manage the policies of a group, in the menu expand Environment-related then select Groups. Locate the environment group you want to manage the policies for, then select Manage policies under the Actions table header. This will direct you to the Policies page where you can manage existing polices or create new policies.
Manage access to an environment group
If a group's access is controlled by a policy, you cannot add access at this level because the policy access takes precedence.
To add or view access, from the menu expand Environment-related then select Groups. Locate the environment group you want to give users access to then select Manage access under the Actions table header.
To add access, select the users or teams you want to add using the dropdown. Then use the Role dropdown to select the role you want this user or team to have.

Once all have been selected, click Create access.
Last updated
Was this helpful?