# Give people access with users, groups and roles

> Add people from XTM One to an OpenCRQ tenant, give them rights with groups and roles, limit what they see with markings, check what each one can do, and manage the platform administrators.

- URL: https://filigran.io/docs/opencrq/administer/users-and-roles/
- Products: OpenCRQ 0.261123.0
- For: administrators
- Type: How-to guide

In OpenCRQ, a person works in a tenant: the risk scopes, scenarios, assets, plans and reviews of one organization. You add people to a tenant from XTM One's directory, and give the few of them who run it the right to manage its security through a group and a role. Groups also hold the markings their members may read, such as the Traffic Light Protocol (TLP) level TLP:AMBER. Platform administrators get their own groups and roles, which create tenants and name the other administrators. This page does both, and shows how to check what each person can do.

## How access works {#how-access-works}

**Diagram: A person gets rights and markings in a tenant from its groups, and rights on the platform from the platform groups**

- Who: Add members (From XTM One's directory), User (Signs in through XTM One)
- In a tenant: Groups (Admin, Connectors, yours), Roles (Manage Security), Markings (Assets and threats it may read)
- On the platform: Platform groups (Platform administrators, User managers, yours), Platform roles (Tenants, users, access)

Connections:

- Add members → User: adds to a tenant
- Add members → Groups: places in
- User → Groups: member of
- Groups → Roles: holds
- Groups → Markings: cleared for
- User → Platform groups: member of
- Platform groups → Platform roles: holds

- **Every member of a tenant works on its data, within their markings.** Membership alone lets a person read and change the risk scopes, scenarios, assets, controls, treatment plans and budget reviews of the tenant. There is no read-only member and no right per risk scope in this version. An asset or a threat that carries a marking, such as TLP:AMBER, shows only to the members cleared for it: see [Limit what people see with markings](#limit-what-people-see-with-markings).
- **A capability adds what only some should do.** A tenant has one capability, **Manage Security**: it opens **Settings > Security** (users, groups, roles, service accounts), **Integrations**, **Settings > Engine**, **Settings > Jobs**, the changes to a CWE's techniques, and the choice of the tenant's home dashboard and **Default language**. A person gets it from a role, through a group. The platform capability **Platform Administration Access** also opens **Settings > Jobs**, and **Settings > Security** for its **Platform** pages.
- **The platform has its own capabilities**, granted by platform roles through platform groups: **Create Tenants**, **Manage Users** and **Platform Administration Access**. They never give access to the data of a tenant. See [OpenCRQ capabilities](https://filigran.io/docs/reference/opencrq/capabilities/).
- **People sign in through XTM One.** OpenCRQ has no password of its own: a person clicks **Sign in with XTM One**, and their OpenCRQ account is tied to their XTM One account. A session lasts about an hour, and XTM One renews it while the person works: an account disabled in XTM One loses OpenCRQ within the hour.
- **XTM One's administrator is the super administrator.** Tagged **Super Administrator**, they hold every capability of the platform and of every tenant, from XTM One at each sign-in, without being a member of any tenant or group. When OpenCRQ starts on a platform with no tenant, it creates one, named **Default** unless the installation names it otherwise (see [Sign in to OpenCRQ](https://filigran.io/docs/deploy/configure/opencrq/#sign-in-to-opencrq)): the super administrator adds its first members.

Each tenant starts with two groups. **Admin** holds the **Admin** role, which has every tenant capability, and contains the person who created the tenant, unless the super administrator created it. The **Admin** group of the tenant OpenCRQ creates at its start has no member. **Connectors** has no role: it is the group a new service account joins by default (see [Let integrations sign in with service accounts](https://filigran.io/docs/opencrq/administer/service-accounts/)).

## Before you start {#before-you-start}

- In the tenant, your role has **Manage Security**: you are in its **Admin** group, or in a group whose role has that capability. The super administrator has it in every tenant.
- For the platform's groups and roles, your platform role has **Manage Users** and **Platform Administration Access**. The super administrator has both.
- OpenCRQ reaches XTM One: adding people searches XTM One's directory, and XTM One sends the emails.

## Add people to the tenant {#add-people-to-the-tenant}

1. Open **Settings > Security > Users** and click **Add members**.
2. Under **Find a person**, type at least two characters of a name or an email: OpenCRQ searches XTM One's directory. Pick each person to add, up to 50 at once. A person who is already a member shows **Already a member** and cannot be picked. For someone who has no XTM One account yet, type their whole email address and pick it: it reads "No XTM One account yet: XTM One will invite them".
3. Under **Assign to groups**, choose the groups they all join, or none for members without security rights.

   ![The Add members panel: a Find a person field that searches XTM One's directory by name or email, an optional Assign to groups selector, and the Cancel and Add buttons.](https://filigran.io/docs/shots/37f0d6cfc9125a8e8bf02338a7367280187ff2eb9fea63f778d7f328a99c3ae4.webp)

4. Click **Add**: the button counts the people picked. The panel says how many members were added to the tenant, and that each of them will get an email to sign in. Click **Close**, or **Add more members**.

XTM One sends each person an email that leads to the tenant. A person who has no XTM One account gets an invitation from XTM One instead: they create their account with the same email address, and then land in the tenant. In OpenCRQ, each person also gets a notification that you added them. The **Users** list shows their **Status**: **Never signed in** until their first sign-in, then **Active**.

When XTM One could not send an email, the panel gives you the link to send yourself: the **Access link**, for the people who already have an XTM One account (**Copy the access link**), or the **Invitation link** of each person XTM One invited (**Copy the invitation link**). A person who could not be added stays picked, and the panel says that their email address was not added, with the reason:

| Reason shown | What to do |
| --- | --- |
| "This email cannot be added here. Check it, or, if they have no XTM One account yet, ask an XTM One administrator to invite them." | XTM One refused to invite this email for you, or the email belongs to another account. Check it, or ask an XTM One administrator |
| "An XTM One invitation is already pending for this email. Add them here once they have created their XTM One account." | Wait until they accept the invitation XTM One already sent, then add them |
| "XTM One could not be reached. Try again in a few minutes." | Click **Add** again later |
| "They are an XTM One super administrator, who already reaches every tenant and the platform administration." | Nothing: the super administrator holds every right already |

## Give rights with groups and roles {#give-rights-with-groups-and-roles}

A role lists capabilities; a group gives its roles to its members and service accounts.

1. To create a role, open **Settings > Security > Roles**, click **Create**, enter a **Name** and click **Submit**. Then open its actions menu, choose **Edit capabilities**, check the capabilities under **Capabilities**, and click **Save**. The panel lists the groups that use the role under **Used by groups**.
2. To create a group, open **Settings > Security > Groups**, click **Create**, enter a **Name** and click **Submit**.
3. Open the group's actions menu and choose **Edit**. In the **Update group** panel, choose its **Roles**, its **Members** and its **Service accounts**, then click **Save**.
4. To change the groups of one person instead, open **Settings > Security > Users**, open the person, click **Manage**, choose their **Groups**, and click **Save**.

A change applies at once: a person who loses **Manage Security** while a tenant's security page is open is taken out of it.

> **Warning**
>
> OpenCRQ does not stop you from removing the last person who has **Manage Security** in a tenant, yourself included. Only the super administrator could then add members, configure integrations or follow its jobs. Before you leave the **Admin** group, or change its role, check that another member keeps the capability.

## Limit what people see with markings {#limit-what-people-see-with-markings}

A marking restricts who reads an object, as in OpenCTI and OpenAEV: a TLP level such as TLP:AMBER, or a marking your organization defines. OpenCRQ names each marking by the Structured Threat Information Expression (STIX) id OpenCTI gives it, so a marking set in OpenCTI or OpenAEV is the same marking here. The clearance of a group lists the markings its members may read.

- **Assets and threats carry markings.** A supporting asset carries the markings its source gives it, and its findings follow it. An asset imported from OpenAEV carries the markings OpenAEV gives it when OpenAEV enforces markings, that is when its `MARKING` preview feature is on; with markings off in OpenAEV, its default, the asset carries none and every member reads it (see [Import OpenAEV results](https://filigran.io/docs/opencrq/use/sources/openaev/#what-the-connector-imports)). A threat carries the markings of its STIX object. A risk scenario carries none in this version: every member reads every scenario.
- **A person reads a marked object only when cleared for all its markings.** An unmarked object shows to every member. OpenCRQ answers for a hidden object as if it did not exist, and nobody changes an object they cannot read. The super administrator reads every asset and every imported threat.
- **A clearance adds up across groups, and covers the lower levels.** A person holds the markings of all their groups. A marking also clears the markings of its type ranked below it: TLP:AMBER clears TLP:CLEAR, TLP:GREEN and TLP:AMBER, but not TLP:AMBER+STRICT or TLP:RED. A member of no cleared group reads only unmarked objects.
- **A marking the tenant does not define** clears nobody on an asset: the asset shows to the super administrator alone. On a threat imported from a STIX file or from **OpenCRQ Default Threats**, it restricts nothing until you create the marking.
- **Threats from OpenCTI follow OpenCTI.** A threat the OpenCTI Live Stream brings shows to a person when OpenCTI lets them read it: their markings, their organization and the threat's authorized members decide there, not their OpenCRQ groups. See [Follow the threats that target your scopes](https://filigran.io/docs/opencrq/use/threats/threat-center/).
- **Jobs and service accounts read everything.** Markings narrow what a person reads, in the interface, through the API or through an XTM One agent. Background jobs and service accounts read every object of the tenant, so the prices and threat scores they compute count objects a person cannot see. Give a service account's token only to an integration that may read the whole tenant.

Each tenant starts with the five TLP 2.0 markings: TLP:CLEAR, TLP:GREEN, TLP:AMBER, TLP:AMBER+STRICT and TLP:RED. Its **Admin** group is cleared for all five, in the tenants created before the upgrade too. **Connectors** and the groups you create are cleared for none. When the OpenCTI connector starts, OpenCRQ adds the markings its OpenCTI user can read, then each marking its stream brings. When OpenAEV enforces markings, the OpenAEV connector adds the markings its OpenAEV user is cleared for, each time it reads the inventory. A marking deleted in OpenCTI stays in OpenCRQ.

### Clear a group for a marking {#clear-a-group-for-a-marking}

OpenCRQ has no screen for markings in this version: you manage them through the [OpenCRQ API](https://filigran.io/docs/reference/opencrq/api/), as a service account whose group's role grants **Manage Security**. A query is a GET, with its input as URL-encoded JSON in `?input=`; a mutation is a POST with a JSON body.

1. In **Settings > Security > Groups**, create the group if it does not exist, and add its members.
2. Generate a token for a service account in a group whose role grants **Manage Security**, with the shortest **Expiry** that will do. See [Give a script a token](https://filigran.io/docs/opencrq/administer/service-accounts/#give-a-script-a-token).
3. Read the `id` of the group with `groups.getGroups`, and the `id` of the marking with `markingDefinitions.listMarkingDefinitions`.
4. Send `markingDefinitions.addMarkingToGroup` with the `groupId` and the `markingDefinitionId`. The members read the newly cleared objects from their next request.
5. Check the clearance with `markingDefinitions.getGroupMarkings`.

| Procedure | Kind | Input | What it does |
| --- | --- | --- | --- |
| `markingDefinitions.listMarkingDefinitions` | query | none | Lists the markings of the tenant, each with its `id`, `stixId`, `definitionType`, `definition`, `color` and `order`. Any member may call it |
| `markingDefinitions.createMarkingDefinition` | mutation | `definitionType`, `definition`, optional `color` and `order` | Creates a marking under the STIX id OpenCTI derives from its type and definition. For a marking that exists, it answers its `id` with `created: false` |
| `markingDefinitions.updateMarkingDefinition` | mutation | `id`, optional `color` and `order` | Changes the color of a marking, or its rank within its type |
| `markingDefinitions.deleteMarkingDefinition` | mutation | `id` | Deletes a marking and takes it out of every clearance: the assets that carry it then show to the super administrator alone |
| `markingDefinitions.getGroupMarkings` | query | `groupId` | Lists the markings a group is cleared for |
| `markingDefinitions.addMarkingToGroup` | mutation | `groupId`, `markingDefinitionId` | Clears a group for a marking |
| `markingDefinitions.removeMarkingFromGroup` | mutation | `groupId`, `markingDefinitionId` | Takes a marking out of the clearance of a group |

Every procedure but `listMarkingDefinitions` requires **Manage Security**, as does `groups.getGroups`.

**Example: Let the risk analyst read the amber assets**

The servers of Grand Meridian's Madrid hotel reach the tenant marked TLP:AMBER, and Camille Roux, in no group, prices the Spain scenarios without them. Marc Dupuis, who holds **Manage Security** through **Admin**, creates the group `Risk analysts`, with no role and Camille as its member. He creates a service account `Security automation` in the **Admin** group, and generates its token **Token name** `Marking clearance`, **Expiry** **1 day**, kept in the variable `OPENCRQ_SECURITY_TOKEN`. Then he runs:

```bash
group_id=$(curl -s https://crq.example.com/trpc/groups.getGroups \
  -H "Authorization: Bearer ${OPENCRQ_SECURITY_TOKEN}" \
  | jq -r '.result.data[] | select(.name == "Risk analysts") | .id')
amber_id=$(curl -s https://crq.example.com/trpc/markingDefinitions.listMarkingDefinitions \
  -H "Authorization: Bearer ${OPENCRQ_SECURITY_TOKEN}" \
  | jq -r '.result.data[] | select(.definition == "TLP:AMBER") | .id')
curl -s -X POST https://crq.example.com/trpc/markingDefinitions.addMarkingToGroup \
  -H "Authorization: Bearer ${OPENCRQ_SECURITY_TOKEN}" \
  -H "Content-Type: application/json" \
  -d "{\"groupId\": \"${group_id}\", \"markingDefinitionId\": \"${amber_id}\"}"
curl -s -G https://crq.example.com/trpc/markingDefinitions.getGroupMarkings \
  -H "Authorization: Bearer ${OPENCRQ_SECURITY_TOKEN}" \
  --data-urlencode "input={\"groupId\": \"${group_id}\"}"
```

The last call lists TLP:AMBER. Camille now reads the assets marked TLP:CLEAR, TLP:GREEN or TLP:AMBER, and still not those marked TLP:RED. Marc then revokes the token.

## Read what a person can do {#read-what-a-person-can-do}

Open **Settings > Security > Users** and click a person. Their page shows:

- **Profile**: the **Name** and **Title** the person holds in this tenant, and their **Email**.
- **Groups & Roles**: the groups they belong to here, and the roles those groups give.
- **Effective Permissions**: how many of the tenant's capabilities they hold, through how many groups and roles, and for each capability the role that grants it.

The **Users** list shows the super administrator in every tenant, tagged **Super Administrator** beside their groups. Their page has no **Manage** button, and each capability reads "via Super administrator (XTM One)".

![The page of Claire Morel, cyber risk manager and super administrator: the Super Administrator tag under Groups and Roles, and under Effective Permissions Manage Security, granted via Super administrator (XTM One).](https://filigran.io/docs/shots/d69c91f0f9540c6782ecbf61b3659f386ad427680ab943035634c370c53b53cf.webp)

## Remove a person from the tenant {#remove-a-person-from-the-tenant}

Open the person, click **Manage**, click **Remove from tenant**, and confirm with **Delete**. The person loses the tenant and every group they had in it. Their account stays on the platform: to give them access again, add them again with **Add members**. A person who belongs to no tenant and has no platform role can no longer use OpenCRQ.

## Manage the platform administrators {#manage-the-platform-administrators}

The **Security** menu shows **This tenant** and **Platform** at the top when you have both **Manage Security** in the tenant and **Platform Administration Access**. In **Platform**, the menu lists **Roles**, **Groups**, **Users** and **Tenants**; without **Manage Users**, it lists **Tenants** only. A platform administrator who belongs to no tenant finds the same pages at `/platform/security`: the menu then holds **Settings > Security** alone.

| Platform capability | What it allows |
| --- | --- |
| **Platform Administration Access** | Open the **Platform** pages of **Settings > Security**, and **Settings > Jobs** in every tenant you belong to |
| **Manage Users** | Create and change platform roles and platform groups, choose the platform groups of each user, and add members to the platform |
| **Create Tenants** | Create, rename and delete tenants. See [Run several tenants in one platform](https://filigran.io/docs/opencrq/administer/tenants/) |

- To create a platform role, open **Roles**, click **Create**, then **Edit capabilities** and check its **Platform Capabilities**.
- To create a platform group, open **Groups**, click **Create**, then **Edit** to choose its **Platform Roles** and its **Members**.
- To make someone a platform administrator, open **Users**, click the person, click **Update**, and add the **Platform Groups** they join. The list shows every account of the platform, with its **Platform groups**, **Roles** and **Tenants**; the super administrator's reads **All tenants**.
- To make a platform administrator of someone who has no OpenCRQ account yet, click **Add members** on the **Users** page, find them under **Find a person**, choose at least one group under **Assign to platform groups**, and click **Add**. XTM One emails or invites them as for a tenant; once signed in, they land on the platform's **Tenants** page.

The super administrator holds the three capabilities from XTM One. When a platform has no platform role and no platform group at its start, OpenCRQ creates two of each, with no member:

| Platform group | Its platform role | Capabilities |
| --- | --- | --- |
| **Platform administrators** | **Platform administrator** | **Create Tenants**, **Manage Users**, **Platform Administration Access** |
| **User managers** | **User manager** | **Manage Users**, **Platform Administration Access** |

To make someone a platform administrator, add them to one of these groups; create other groups and roles when the administrators need another split. OpenCRQ refuses to remove a role from a platform group, a person from a platform group, or a whole platform group or role, when no user would then hold **Manage Users** or **Platform Administration Access** through a platform group. The super administrator does not count.

**Example: Bring the risk team of Grand Meridian Hotels in**

Claire Morel, cyber risk manager of Grand Meridian Hotels, administers XTM One, and reaches the tenant as OpenCRQ's super administrator. After the incident of 9 January 2026, she opens it to two people who already have an XTM One account: an analyst who reads and prices the scenarios but should not manage access, and the head of IT security, who takes over the integrations.

- **First add**: under **Find a person**, she types `Camille` and picks Camille Roux, `camille.roux@grand-meridian.example`, and leaves **Assign to groups** empty. Camille becomes a member: she works on the scenarios of Grand Meridian France and Spain, and does not see **Settings > Security**, **Integrations** or **Jobs**.
- **Second add**: she picks Marc Dupuis, `marc.dupuis@grand-meridian.example`, with `Admin` under **Assign to groups**. Marc gets **Manage Security** through the **Admin** role, and configures the OpenCTI connector.
- XTM One emails each of them a link to the tenant. The **Users** list shows them both as **Never signed in** until they sign in.

![The Users list of Grand Meridian Hotels: Claire Morel tagged Super Administrator and Active, Camille Roux with no group, and Marc Dupuis in the Admin group with the Admin role, both Never signed in.](https://filigran.io/docs/shots/9d88b30db5c9121e8e9fbbd029f6d7f59a6749230928fb254062d713832acfdd.webp)

Marc's page shows **Manage Security** granted via **Admin**; Camille's shows none of the tenant's capabilities, and she still works on every scenario. In no group, she is cleared for no marking, and reads only the unmarked assets until a group clears her (see [Limit what people see with markings](#limit-what-people-see-with-markings)). With Marc holding **Manage Security** in the tenant, its security no longer depends on Claire alone.

> **With XTM One: XTM One agents act as the person who asks**
>
> An XTM One agent that works in OpenCRQ calls it as the person talking to it: XTM One signs each call for that person, and OpenCRQ matches it to the account tied to their XTM One account, not to an email address. The agent sees and changes what that person can, in the tenant they work in, and nothing more. A person whose XTM One account is tied to no OpenCRQ account gets no access through an agent.

## Check that it works {#check-that-it-works}

Open the person's page: **Effective Permissions** says what they can do in this tenant, and which role gives it. To see what a member sees, sign in as them in a private window: a member without **Manage Security** has no **Integrations** entry and no **Security**, **Engine** or **Jobs** under **Settings**, unless their platform role has **Platform Administration Access**, which shows **Security** and **Jobs**. The same window shows which marked assets and threats their clearance lets them read; `markingDefinitions.getGroupMarkings` lists the markings of each of their groups.

## What's next {#what-s-next}

- [Let integrations sign in with service accounts](https://filigran.io/docs/opencrq/administer/service-accounts/), for the accounts connectors and scripts use.
- [Run several tenants in one platform](https://filigran.io/docs/opencrq/administer/tenants/), to give another organization its own tenant.
- [OpenCRQ capabilities](https://filigran.io/docs/reference/opencrq/capabilities/), every capability a role can grant.
