Docs
Communications
1 check against Slack, verifying that two-factor authentication is required workspace-wide.
slack-2fa-enforced
Checks whether a Slack workspace requires two-factor authentication for all members. Calls the Slack Web API's team.info method, authenticated with a bearer token, and reads team.two_factor_required.
- accessToken
- a Slack bearer token with the admin scope needed to read workspace security settings. No separate target is needed, since the token itself scopes the request to one workspace.
Slack's Web API returns HTTP 200 with ok: false and an error code for an invalid, expired, or under-scoped token, rather than a 401 or 403 status. This check treats a recognized auth-shaped error code the same way every other check treats a rejected credential: needs-review, never fail.