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

# Users and Agents

> Who works in Semantius: people and agents, both kept as records of users, how they sign in, and the API keys they work with.

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

---

Everyone who works in Semantius is a record of `users`: a person who signs in, or an agent, a service principal rather than a person. Both hold [roles and permissions](https://www.semantius.com/docs/permissions-and-roles.md) the same way, and their changes are logged under their user id alike.

- **No anonymous access.** Every request to data or to a function needs a signed-in user.
- **A disabled user holds no permissions**, and every request fails with hint code 90006.

## Users

A [user](https://www.semantius.com/docs/users-and-agents/users.md) signs in through an identity provider, and their first request creates their record.

## Agents

An [agent](https://www.semantius.com/docs/users-and-agents/agents.md) is a user with `is_agent` set. It gets a generated identity and works through an API key.

## API keys

An [API key](https://www.semantius.com/docs/users-and-agents/api-keys.md) acts as its owner, user or agent, with every permission the owner holds.

## API

| Call                                                                 | What it does                                                                                                               |
| -------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- |
| `/users`                                                             | The users and agents, through `create_user`, `read_user`, `update_user` and `delete_user`.                                 |
| `/rpc/get_userinfo`                                                  | The caller’s profile, roles, effective permissions and visible modules. The first call of a new user creates their record. |
| `/rpc/generate_api_key`, `/rpc/list_api_keys`, `/rpc/delete_api_key` | The caller’s API keys. See [API keys](https://www.semantius.com/docs/users-and-agents/api-keys.md).                        |

## Errors

| Code                           | Meaning                                                     |
| ------------------------------ | ----------------------------------------------------------- |
| `42501` with hint code `90006` | The caller has no user record yet, or the user is disabled. |
| `90401`, `90402`               | The user or the API key does not exist.                     |

The guards that protect users and their roles (90103, 90104, 90107) are listed under [Who can manage access](https://www.semantius.com/docs/permissions-and-roles/roles.md#who-can-manage-access).

---

## Related

- [Previous: Roles](https://www.semantius.com/docs/permissions-and-roles/roles.md)
- [Next: Users](https://www.semantius.com/docs/users-and-agents/users.md)
- [Full index for agents](https://www.semantius.com/llms.txt)
