Skip to content

Updating the command for adding a SAML group link to specify the group name and access level

Asmaa Hassan requested to merge asmaa.hassan-master-patch-14226 into master

What does this MR do and why?

A customer is interested in managing SAML group links through API, but couldn't use the command form the docs to create a group link.

Testing it myself, I'm adding the command that worked for me.

How to set up and validate locally

  1. Create a new group on your IdP and grab its name or ID:

  2. For a group that has SAML configured:

    curl --request POST --header "PRIVATE-TOKEN: <your token>" --header "Content-Type: application/json" --data '{ "saml_group_name": "<name of your saml group>", "access_level": "30"}' --url "https://gitlab.com/api/v4/groups/<group ID>/saml_group_links"
  3. In UI, you should be able to see the new group link created under SAML Group Links

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports

Loading