From 3291483e09660e3f5c336065120ceb7f895096ae Mon Sep 17 00:00:00 2001 From: Daniel Richardson Date: Thu, 9 May 2024 11:05:42 -0400 Subject: [PATCH] Issue: 1936 fix Missing MEmberRoleId for group link creation --- groups.go | 1 + groups_test.go | 1 + 2 files changed, 2 insertions(+) diff --git a/groups.go b/groups.go index 23241f4a4..00c36c327 100644 --- a/groups.go +++ b/groups.go @@ -881,6 +881,7 @@ func (s *GroupsService) GetGroupSAMLLink(gid interface{}, samlGroupName string, type AddGroupSAMLLinkOptions struct { SAMLGroupName *string `url:"saml_group_name,omitempty" json:"saml_group_name,omitempty"` AccessLevel *AccessLevelValue `url:"access_level,omitempty" json:"access_level,omitempty"` + MemberRoleID *int `url:"member_role_id,omitempty" json:"member_role_id,omitempty"` } // AddGroupSAMLLink creates a new group SAML link. Available only for users who diff --git a/groups_test.go b/groups_test.go index c272e0760..3c778bee0 100644 --- a/groups_test.go +++ b/groups_test.go @@ -569,6 +569,7 @@ func TestAddGroupSAMLLinkCustomRole(t *testing.T) { opt := &AddGroupSAMLLinkOptions{ SAMLGroupName: Ptr("gitlab_group_example_developer"), AccessLevel: Ptr(DeveloperPermissions), + MemberRoleID: Ptr(123), } link, _, err := client.Groups.AddGroupSAMLLink(1, opt)