Create or update IdP group connections
endpoint.groups
array will remove all connections for a team.curl --location --request PATCH 'https://api.github.com/teams//team-sync/group-mappings' \
--header 'Content-Type: application/json' \
--data-raw '{
"groups": [
{
"description": "The people who configure your octoworld.",
"group_description": "string",
"group_id": "123",
"group_name": "Octocat admins"
}
]
}'
{
"groups": [
{
"group_description": "A group of Developers working on AzureAD SAML SSO",
"group_id": "111a1a11-aaa1-1aaa-11a1-a1a1a1a1a1aa",
"group_name": "saml-azuread-test"
},
{
"group_description": "Another group of Developers working on AzureAD SAML SSO",
"group_id": "2bb2bb2b-bb22-22bb-2bb2-bb2bbb2bb2b2",
"group_name": "saml-azuread-test2"
}
]
}
groups
object will replace the original one. You must include any existing groups that you don't want to remove.