Semantius Logo
DocsData CatalogUsers and Agents

Users and Agents

On this page

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 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 signs in through an identity provider, and their first request creates their record.

Agents

An agent is a user with is_agent set. It gets a generated identity and works through an API key.

API keys

An API key acts as its owner, user or agent, with every permission the owner holds.

API

CallWhat it does
/usersThe users and agents, through create_user, read_user, update_user and delete_user.
/rpc/get_userinfoThe 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_keyThe caller’s API keys. See API keys.

Errors

CodeMeaning
42501 with hint code 90006The caller has no user record yet, or the user is disabled.
90401, 90402The 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.