Slack - Add User to Group (SCIM)

This guide documents adding users to groups through the Slack API's SCIM Endpoint. The custom action differs from Slack's OOTB action based on how you manage groups for an Enterprise Grid deployment of Slack. On Enterprise Grid, SCIM operations work across the entire organization, not individual workspaces.

The SCIM endpoints allow you to provision, de-provision, and update team members in one place rather than having to do so across every workspace in an organization. More documentation on Slack's SCIM endpoints can be found here.

Custom Action Configuration

Method : PATCH

URL : https://api.slack.com/scim/v1/Groups/<your_group_id>

Query Parameters

ParameterVariable Mapping

Headers

HeaderValue
Content-Typeapplication/json
Authorization[SecretsVault.SlackSc]

Body

{
    "schemas": [
        "urn:scim:schemas:core:1.0"
    ],
    "members": [
        {
            "value": "[Trigger.User.Details.Slack-ID]"
        }
    ]
} 

📘

Tips

Documentation on the different SCIM endpoints for Slack that could be used can be found here:

👍

Congratulations!

You have successfully created a Custom Action for adding users to groups through the Slack API's SCIM Endpoint.