# Run Super Agent in Slack for every member, with a role you define

> Agno's `Slack` interface now serves Super Agent to a whole workspace under AgentOS authorization, with `default_role=` for unlisted members.

- Published: 2026-11-17
- Author: Harsh Sinha
- Categories: Changelog
- Canonical: https://www.agno.com/blog/run-super-agent-in-slack-for-every-member-with-a-role-you-define
- Markdown: https://www.agno.com/blog/run-super-agent-in-slack-for-every-member-with-a-role-you-define.md

Agno's `Slack` interface can now serve Super Agent to a whole workspace under AgentOS authorization, and the new `default_role=` setting gives members outside `users=` the permissions of a managed role. Before, `get_app()` refused to start unless `users=` listed every workspace member. A deployment template can't know those members ahead of time, so it crashed in production.

```python
from agno.os.authz import Authorization
from agno.os.interfaces.slack import Slack

authz = Authorization(trust_token_scopes=True)
authz.define_role("slack-member", ["teams:run", "agents:run", "tasks:read", "tasks:write", "projects:read"])
# pass manager=OSManager(model=...) and authorization=authz to AgentOS, then:
agent_os.interfaces.append(Slack(team=agent_os.manager, default_role="slack-member"))
```

The role only supplies permissions. The run's `user_id` and principal stay the member's own Slack ID (or their email with `resolve_user_identity=True`), so Agno records their sessions, memory, Projects and Tasks under them. `default_role=` works for any agent, team or workflow Slack serves, and grants nothing with authorization off.

```text
Earlier releases: get_app() raised ValueError: Slack serving Super Agent under authorization requires Slack identity mapping: pass Slack(users={slack_user_id: principal_id}).
This release:     runs, user_id='U_DAVE', principal='U_DAVE', roles=['slack-member']; tasks:write allowed; projects:write refused (Permission required: projects:write)
```

## Who gets which access

- With `users=` and `default_role=`, listed members keep their mapped principal and everyone else gets the role.
- With `users=` alone, an unlisted member still sees "Your Slack account is not linked to an account on this AgentOS." and nothing runs.
- With neither, under authorization, Super Agent answers each member with no roles and refuses anything that needs a permission.
- An agent, team or workflow other than Super Agent, with neither setting, runs every member unchecked, as before.

One existing setup behaves differently after the upgrade. If Slack serves Super Agent without `users=` and you add a `JWTMiddleware(authorization=True)` after `get_app()`, earlier releases refused every message as unlinked. Those members can now chat with Super Agent under no roles. Pass `users=` without `default_role=` to keep refusing them.

We built each setup on both releases with a real `Authorization`, sent a Slack message event through the interface's handler with the run step patched out, and used a stand-in model object that never made a call.

See the [cookbook](https://github.com/agno-agi/agno/blob/main/cookbook/05_agent_os/17_slack/README.md), and learn more about [AgentOS roles](https://docs.agno.com/agent-os/security/authorization/managed-roles) in the documentation.
