Skip to content
Docs

Enterprise-Managed Authorization for Slack with Okta

Use Enterprise-Managed Authorization (EMA) to access the Slack Model Context Protocol (MCP) server after Okta sign-in, without a separate Slack consent prompt. Enable EMA in Vercel Connect and Slack, and configure cross-app access (XAA) in Okta. See how EMA uses XAA.

Slack requires an organization-level app installation for EMA. Enabling EMA on the Connect connector doesn't replace the Slack organization and app approvals below.

  1. Open Slack's Organization settings, then Security > SSO settings.
  2. Edit Enterprise-Managed Authorization and enable it.
  3. Set ID-JAG Issuer URL to your Okta org URL, such as https://your-org.okta.com, and save.

Use your organization's issuer, not the Slack MCP URL.

Create a Slack connector in Vercel Connect using managed setup. Enable Enterprise-Managed Authorization (EMA) in Resource mode. Connect enables organization deployment and EMA in the Slack app's manifest.

Choose only the user scopes your app needs, such as users:read and users:read.email.

If you supply an existing Slack app instead:

  1. Add https://connect.vercel.com/callback to its OAuth redirect URLs.
  2. Enable Org-readiness and Enterprise-Managed Authorization in the Slack app settings.
  3. Add the required user scopes and the team:read bot scope.
  4. Enter its OAuth client ID and client secret in the Slack connector.

Have a Slack administrator approve and install the app at the organization level, then add it to the required workspaces. Workspace-only installations don't support EMA. Keep its OAuth client ID for Okta.

For an existing connector, enable EMA Resource mode in Settings and save. Resolve any Slack configuration sync errors before testing.

  1. Open Slack's application integration in Okta. Under Machine Assignments > Callers, enable Cross App Access (XAA). Older versions call this tab Resource Server.
  2. Verify its Issuer URL is https://mcp.slack.com. Okta Integration Network apps may supply this automatically.
  3. Go to Directory > AI Agents, select your agent, and open Resource connections.
  4. Select Add resource connection and configure:
FieldValue
Application instanceYour XAA-enabled Slack application integration
Agent client ID registered in SlackThe Slack app's OAuth client ID, not its app ID or the Okta client ID
Resource identifierhttps://mcp.slack.com
ScopesAllow only the user scopes your app requests

Save the connection. See Okta's AI agent-to-app guide for the full workflow.

Enable EMA Identity Provider (IdP) mode on the Okta connector and Resource mode on Slack. Link both connectors to your project and environment.

Slack defaults both Audience and Resource to https://mcp.slack.com, so leave them empty unless you need an override. Don't use your Okta org URL for these fields.

Follow the Passport flow, then use the resource token example with:

ParameterExample
Resource connector UIDslack/enterprise
scopes['users:read', 'users:read.email']

Replace the UID with yours and pass the Passport identity as subject.

For apps without Passport, follow the custom integration flow. Set subject.experimental_idp to your Okta connector's UID, such as oauth/okta, and use the same application user ID as the IdP sign-in.

Use the returned token for server-side Slack MCP requests, not as a general-purpose bot token.

SymptomWhat to check
app_not_admin_approvedA Slack administrator must approve and install the app at the organization level.
UserAuthorizationRequiredErrorCheck the stored IdP refresh token, both connectors' EMA modes, project links, and Okta resource connection. Follow the authorization recovery steps.
Scope-related errorsMatch the scopes in your request, Slack app configuration, and Okta resource connection.

Slack supports EMA only for apps installed at the organization level. A Slack administrator must approve and install the app for the organization, then add it to the required workspaces. If you see app_not_admin_approved, the organization-level approval or installation is missing. See Create and approve the Slack app.

Enter the Slack app's OAuth client ID in the Agent client ID registered in Slack field of the Okta resource connection. Don't use the Slack app ID or your Okta application's client ID. See Connect the Okta agent to Slack.

Leave both empty. Slack defaults Audience and Resource to https://mcp.slack.com. Set them only when you need an override, and never use your Okta org URL for either field. In Okta, use the same https://mcp.slack.com value as the resource identifier.

No. Slack's EMA issues user tokens for the Slack MCP server, so use the token only for server-side Slack MCP requests on behalf of the signed-in user. For a bot that posts as your app, request an app-subject token instead, for example with the Chat SDK or eve Slack helpers.

No. After an Okta sign-in, Connect exchanges the user's identity for a Slack token without a separate Slack consent prompt. Your Okta administrators decide which scopes users receive, so a token may not include every scope you request. Match the scopes in your request, the Slack app configuration, and the Okta resource connection.


Was this helpful?

supported.