Permit custom roles in protected environments options dropdown

Release notes

Protected environments now support the ability to define custom roles (if configured) for the Allowed to deploy and Approvers selection dropdowns. Previously, groups would need to be defined and assigned to a project with relevant access instead.

Problem to solve

As custom roles are expanded and used by more of our customers, we should aim to ensure that custom roles can be used in additional dropdown locations. Here I propose an option to allow users with given custom roles to deploy and approve deployments to a protected environment. This makes for a smooth user experience.

Proposal

Under Roles, search for and include custom roles which could apply to the project. For example, any users with custom roles within the project can have their custom roles included in the list.

This could be limited only to custom roles which have the "Manage Protected Environments" (admin_protected_environments) ability included.

image.png

/label groupenvironments

Edited Feb 17, 2026 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading