Add member_role_id to saml_providers
What does this MR do and why?
This adds the member_role_id
column to the saml_providers
table.
When a member role is defined, it allows for creating members with custom roles through Group SAML and/or SCIM (re-)provisioning.
How to set up and validate locally
- Create a group with Ultimate license
- Configure SAML for the group
- Create a custom role for the group (Make sure the base role matches the Group SAML's Default membership role).
- In Rails console, set the new created
member_role
of the new createdsaml_provider
:SamlProvider.last.update(member_role: MemberRole.last)
- Create a new user by signing in using the SAML SSO link and verify the
member_role_id
is set on the user's member record:User.last.members.last.member_role
Issue: #417285 (closed) (Backend part)
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Alex Buijs