Updating the command for adding a SAML group link to specify the group name and access level
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
-
Create a new group on your IdP and grab its name or ID:
-
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"
-
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.
-
I have evaluated the MR acceptance checklist for this MR.