Skip to content

Assign instance-level custom roles to user

Hinam Mehra requested to merge 438128-assign-instance-level-custom-roles into master

What does this MR do and why?

  • Resolves sub-task 2 & 3 of #429280 (closed)
  • It allows owners to assign instance-level custom roles on the group/project members page.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

instance-level-roles

Database

How to set up and validate locally

  1. Make sure that SaaS mode is turned off.

  2. Choose a group with at least one project, such as Gitlab Org. Create two member roles - one on a group-level another on an instance-level using the rails console:

MemberRole.create(name: "Guest plus (group-level)", read_code: true, base_access_level: 10, namespace_id: <ID of Group>)
MemberRole.create(name: "Guest plus (instance-level)", read_code: true, base_access_level: 10, namespace_id: nil)
  1. Navigate to the members page of the group. You should be able to assign either of the custom roles to a user + invite any new members with the custom roles.

Related to #438128 (closed)

Edited by Hinam Mehra

Merge request reports