Skip to content

Add "Enterprise" badge to users that are provisioned via SAML/SCIM

📖 What does this MR do?

Related to #325712 (closed)

Adds an "Enterprise" badge to group members that were provisioned via SAML/SCIM.

💻 Local testing

Setting up SAML locally can be a bit tricky so instead we can just update a user so they behave like they were provisioned with SAML/SCIM

  1. Create a group and add some users
  2. Make note of the group ID listed in Group overview under the group name.
  3. bin/rails console
  4. user = User.find_by_username('<username of a member in your group>')
  5. user.user_detail.provisioned_by_group_id = <group id>
  6. user.save

📷 Screenshots

View Before After
Group Screen_Shot_2021-06-10_at_9.47.09_AM Screen_Shot_2021-06-10_at_9.44.16_AM
Subgroup Screen_Shot_2021-06-10_at_9.47.31_AM Screen_Shot_2021-06-10_at_9.43.55_AM
Project in group namespace Screen_Shot_2021-06-10_at_9.46.47_AM Screen_Shot_2021-06-10_at_9.44.44_AM

🚦 Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

Does this MR contain changes to processing or storing of credentials or tokens, authorization and authentication methods or other items described in the security review guidelines? If not, then delete this Security section.

  • [-] Label as security and @ mention @gitlab-com/gl-security/appsec
  • [-] The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • [-] Security reports checked/validated by a reviewer from the AppSec team
Edited by Peter Hegman

Merge request reports

Loading