Run Super Agent in Slack for every member, with a role you define
November 17, 20261 min read
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.
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.
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=anddefault_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, and learn more about AgentOS roles in the documentation.
Frequently asked questions
They can chat. Under authorization, with no users= and no default_role=, the run carries the principal slack:<member id> with no roles, so every tool that checks a permission refuses it. On the test install the run printed principal='slack:U_DAVE', roles=None; tasks:write refused (Permission required: tasks:write).
AgentOS starts anyway, because the role name is only checked when a message arrives. Every member outside users= then gets a private notice and no run: Not run: Permission required: teams:superagent:run. The role also needs the run permission for what Slack serves, teams:run for Super Agent or agents:run for an agent.
Only if the provider reads it. Managed roles from Authorization.define_role use the role directly. A custom authorization_provider receives the member as principal_id and the role name in the new AuthorizationContext.roles field, and decides on the principal unless it checks that field.
No. Approve, Deny and Stop stay with the person who started the run and the Slack IDs in approvers=. The user directory's disabled switch also applies to each member, so an admin can cut off one person.





