> This page location: Docs > Data Catalog > Users and Agents > Agents
> Full index for agents: https://www.semantius.com/llms.txt

# Agents

> Agents in Semantius: service principals kept as users, the identity they are given, how they work through API keys, and the roles they hold.

- **URL**: https://www.semantius.com/docs/users-and-agents/agents

---

An agent is a user with `is_agent` set: a service principal rather than a person. An agent is a user like any other, with the User role.

- **Identity.** An agent never signs in at an identity provider, so nothing supplies its `external_id`. An agent created without one, or with an empty one, gets a generated identity: `agent:` followed by a random UUID. It is set when the agent is created and kept after that: an update never regenerates it, and an empty `external_id` is refused (23514).
- **Working through an API key.** An agent works through an [API key](https://www.semantius.com/docs/users-and-agents/api-keys.md) that an administrator creates for it. The key acts as the agent, with every permission the agent holds.
- **Roles and permissions.** An agent gets roles and direct grants as any user does. See [Roles](https://www.semantius.com/docs/permissions-and-roles/roles.md).
- **Audit.** What an agent changes is logged under its user id, like the changes of any user. See [Audit Logs](https://www.semantius.com/docs/audit-logs.md).

---

## Related

- [Previous: Users](https://www.semantius.com/docs/users-and-agents/users.md)
- [Next: API Keys](https://www.semantius.com/docs/users-and-agents/api-keys.md)
- [Full index for agents](https://www.semantius.com/llms.txt)
