Skip to content

Guest + Read Code assignments issue

Guest + Read Code assignments issue @hmatthews can you help? thanks

Licensed user, and are active in other group-based projects

image

Correlation ID:

{
"component": "gitlab"
"subcomponent":"exceptions_json"
"severity":"ERROR"
"time":"2025-06-19T16:27:08.376Z"
"correlation_id":"01JY4G7Y1956VKHVCWPQCE15PB"
"meta.caller_id":"POST /api/:version/projects/:id/invitations"
"meta.remote_ip":"10.0.0.170"
"meta.feature_category":"user_profile"
"meta.user":"phil30516"
"meta.user_id":351
"meta.client_id":"user/351"
"exception.class":"NoMethodError"
"exception.message":"undefined method `custom_roles_enabled?' for nil:NilClass"
"exception.backtrace":["ee/app/models/concerns/member_roles/member_role_relation.rb:44:in `validate_member_role_access_level'"]
}

Looks like the custom role has completely gone now when adding user to project?

image

Looks like it now appears only when adding a user to a group - **not an individual project **- is this intentional?

Project (both personal projects and a project within a group):

image image

Thanks, yeah - I've managed to assign it at a project level before

That looks like it's for groups only so yeah may be worth asking GL

Does this help on roles and permissions and also custom roles - "You can only assign custom roles when you invite a group to another group"

Ah yep if it's a platform limitation then that's fine - must have just slipped through in the UI in the previous version

Edited by 🤖 GitLab Bot 🤖