Access control is a core feature of Soma. It allows you to configure fine-grained access control to agents, functions & API endpoints. Please review the appendix: roles & permissions for a catalog of all available roles & related permissions in Soma. In summary, there are the following roles:Documentation Index
Fetch the complete documentation index at: https://docs.trysoma.ai/llms.txt
Use this file to discover all available pages before exploring further.
adminmaintainerread-only maintaineruseragent
Agent invocation endpoints
In addition to the above roles which govern access to Soma API endpoints, you can also provide an additional configuration for agent invocation endpoints. By default, agent’s can not be invoked by any role. When configuring your agent in the relevant SDK usingcreateSomaAgent or create_soma_agent, you can specify an array of all roles that are allowed to invoke the agent.
This enables:
- Agent-only access, where users’ can’t invoke a workflow. Only agent role users can (other agents).
- User-only access, where agents can’t invoke a workflow. Only user role users can (other users).
- Maintainer-only access, where users can’t invoke a workflow. Only maintainer role users can (other maintainers).