Manage users
Create, edit, disable, merge and delete OpenCTI users, read what each user can do and has done, manage their API tokens, and end their sessions.
Every person and every machine that uses OpenCTI has a user account, listed in . This page shows how to create, change, disable and delete users, how to read what a user can do and has done, and how to control their API tokens and sessions. A user's rights come from their groups: read How access control works first if the model is new to you.
Before you start
- Your role has the Manage credentials capability. An organization administrator manages only the members of the organizations they administer: see Separate data between organizations.
- The groups you want to give exist. See Organize users in groups.
Kinds of accounts
| Kind | How it logs in | How it is created |
|---|---|---|
| User | Email and password, or single sign-on | By hand, or at the first single sign-on login |
| Service account | API token only, never the web interface | By hand, or by an integration. See Create accounts for integrations |
The page of a service account shows Account type: Service account. For a user created by a single sign-on login, the Password tab is disabled: their password lives in the identity provider.
Create a user
With single sign-on, you do not create users: OpenCTI creates each account at its first login. See Configure single sign-on.
- Open and click Create User.
- Enter a Name and an Email address. Firstname, Lastname and Description are optional.
- Enter a Password and its Confirmation. The password must follow the password policy, set on the local strategy in Manage login providers in the UI.
- Choose the Organizations and the Groups of the user. The user also joins the groups granted by default at user creation, unless you turn on Don't add the user to the default groups. The tooltip next to it names those groups.
- Optionally, change the Account Status (Active by default), set an Account Expire Date, or choose an Email template to send the user.
- To give this user a maximum confidence level of their own, instead of the one their groups give, turn on Enable user Max Confidence Level and set the level.
- Click Create.
Leo Martin joins the threat intelligence team of Grand Meridian Hotels, which signs in with local accounts.
- Name:
Leo Martin. Email address:leo.martin@example.com. Firstname:Leo. Lastname:Martin. - Password and Confirmation: a temporary password that follows the policy, given to Leo by phone.
- Organizations: Grand Meridian Hotels. Groups: CTI analysts.
- Don't add the user to the default groups: on, so that Leo gets only the rights of CTI analysts.
- Enable user Max Confidence Level: off, so that Leo inherits 75 from CTI analysts.
The user page then shows the Analyst role, the CTI analysts group and a Max Confidence Level of 75: Leo can read and write knowledge up to TLP:AMBER.
A user needs a maximum confidence level, from a group or set on the user, to create, update or delete data. Check the Max Confidence Level on the user page after you create the user.
Edit a user
Open the user and click Update. The panel has five tabs:
| Tab | What you change |
|---|---|
| Overview | Name, Email address, Firstname, Lastname, Description, Language, Organizations, Account Status and Account Expire Date |
| Password | A new Password and its Confirmation. Disabled for single sign-on users and for the platform administrator, whose password comes from app:admin:password |
| Groups | The groups of the user. Each group shows its maximum confidence level, or a warning when it has none |
| Organizations admin | The organizations this user administers, among their own organizations. Requires Enterprise Edition |
| Confidences | A Max Confidence Level for this user, and a level per entity type with Add a specific max confidence level for an entity type |
A service account has no password: its Password tab is disabled.
A level set on the user replaces the levels of their groups, even when it is lower, and also replaces the per-type levels of the groups. Without one, the user gets the highest level among their groups.
To add or remove groups or organizations for many users at once, select them in the list, click Update in the toolbar, choose Add or Remove, then Groups or Organizations.
Click Convert on the user page to turn a user into a service account, or back, one account at a time. See Create accounts for integrations.
New in 7.260811 LTS To make a user choose a new password at their next request, click Force password change in the Password tab. The user page then shows the date under Password valid until. Passwords can also expire on their own: see the password policy in Manage login providers in the UI.
Disable a user
Disable an account rather than delete it: the user can no longer log in, and everything they created, shared or own stays in place.
Open the user, click Update, and set Account Status to Inactive or Locked. OpenCTI ends the open sessions of the user at once. At the next login, the user sees the message of their status. An account also stops working when its Account Expire Date passes: OpenCTI refuses the login and sets the status to Expired.
To change many accounts at once, select them in the list, click Update in the toolbar, choose Replace, then Account status or Account expiration date.
Sam Reyes, of the Harbor contractors group, works for the sharing community until 30 June 2026. When you create his account, set Account Expire Date to 30 June 2026, 6:00 PM. From that evening, OpenCTI refuses his logins and sets his status to Expired, without anyone having to think of it. If the engagement ends early, set Account Status to Inactive instead: his open sessions end at once, and the objects he created keep him as their creator.
New in 7.260811 LTS The same toolbar action sets a Force password change date for all the selected users.
Statuses and their messages
Two keys of the platform configuration, in Functional customization, shape account statuses:
app:locked_account_statusesdefines the statuses that block login, besides Expired, with the message each one shows at login. By default, Inactive and Locked:app:locked_account_statuses:Inactive(APP__LOCKED_ACCOUNT_STATUSES__INACTIVE) andapp:locked_account_statuses:Locked(APP__LOCKED_ACCOUNT_STATUSES__LOCKED).app:account_statuses_default(APP__ACCOUNT_STATUSES_DEFAULT),Activeby default, is the status of an account created without one: at the first single sign-on login, by an integration, or through the API. The creation form always sends the status you choose. The value must beActive,Expiredor a status ofapp:locked_account_statuses, or the platform refuses to start.
Grand Meridian Hotels signs its staff in with Microsoft Entra ID, but only people the CTI team lead approves may use OpenCTI. In the docker compose file, the opencti service gets:
services:
opencti:
environment:
APP__ACCOUNT_STATUSES_DEFAULT: Inactive
APP__LOCKED_ACCOUNT_STATUSES__INACTIVE: Your account waits for approval. Write to cti-admin@example.com with your team and your manager's name.
APP__LOCKED_ACCOUNT_STATUSES__LOCKED: Your account is locked for security reasons. Write to soc@example.com to unlock it.
After a restart, the first login of a newcomer creates their account as Inactive and shows them the approval message. The administrator finds the account in , checks its groups, and sets Account Status to Active. Accounts that feeds create for themselves are Inactive too: activate them when you create the feed. The platform administrator always starts Active. Since Inactive now means waiting for approval, close the accounts of people who leave with Locked.
When a platform organization is set in Set platform security policies, a user who belongs to no organization cannot log in. Service accounts and users with Bypass all capabilities are not affected.
Delete a user
On the user page, open the actions menu (⋮), choose Delete, and confirm. The menu shows Delete only when your role also has Delete knowledge.
Deleting a user also:
- ends their open sessions;
- deletes their notifications, triggers and digests;
- deletes the investigations and dashboards where they are the only administrator;
- turns private the public live streams, TAXII collections and CSV feeds that share data with this user's rights. Give them another user to make them public again.
Read the user page
The user page has three tabs: Overview, Analytics and History. Use them to check an account before you change it, or to review what someone did, for example before an account is closed.
Overview
- Basic information. For a user: the Email address, the 2FA state, the API Tokens, Firstname, Lastname, Account status and Account expiration date. For a service account: Account type, Account status, Account expiration date, API Tokens, and who created it and when. To reset the two-factor authentication of a user who lost their device, click the delete icon next to 2FA state. The user can then set it up again.
- Permissions: the Roles, Groups and Organizations the user gets, their open Sessions, their Hidden entity types and their effective Max Confidence Level. A tooltip next to the level says where it comes from: a group, the user, or Bypass all capabilities. Per-type levels follow, each marked from group with the group's name, or from user.
- Triggers and Digests: the notifications sent to the user. Service accounts have none.
- Operations: the Number of operations of the user per month. Requires Enterprise Edition.
- History: the latest changes the user made, with links to every entity and relationship they created. It requires the Access security activity capability. Each line gives the date, then the user's name and what they did; a line too long for the card is cut, and hovering over it shows it whole.
New in 7.260811 LTS For a user, Basic information also shows Password valid until, the date the password must be changed.
Analytics
Analytics charts the activity of the user, from the activity log. It requires Enterprise Edition.
| Chart | What it tells you |
|---|---|
| Login to the platform | When the user logged in |
| Knowledge generation | How many objects they created, updated and deleted |
| Top global search keywords | What they searched for |
| Top events | The actions they took most |
| Top authors of read and exported entities, Top read or exported entities and Latest exports | What they read and took out of the platform |
Searches, reads and exports are recorded only for the users, groups and organizations that extended activity listens to. For anyone else, these charts stay empty: see Choose what activity is recorded.
History
History lists every change the user made to the knowledge. With the Access security activity capability, it also lists their actions from the activity log, such as logins and exports. A change made with a commit message, when an entity type requires an external reference, shows an icon: click it, View commit message, to read the Commit message.
API tokens
A token lets a person or a script call the API with the rights of the user. The user's role needs Allow token usage, without which every token of the user is refused.
Users generate their own tokens on their profile. As an administrator, you see, generate and revoke the tokens of any user on their page. The date a token was last used is updated at most once a minute, to spare Redis: app:token_activity_period (APP__TOKEN_ACTIVITY_PERIOD), in seconds, 60 by default.
- On the user page, click Generate Token next to API Tokens. The Generate a new token panel opens.
- Enter a Name that says what the token is for.
- Choose a Duration: 30 days, 60 days, 90 days, 1 year or Unlimited, the default. Prefer a limited duration: a leaked token stops working on its own.
- Click Generate. The Token details panel shows the token.
- Copy the token and give it to its owner. OpenCTI keeps only a fingerprint: once you close the panel, nobody can read the token again.
The API Tokens list shows, for each token, when it was Last Used, or Never used, and when it Expires At. A token that expires within seven days shows Expires soon; after that date it shows Expired and is refused. To stop a token at once, click the Revoke icon on its line, then confirm with Revoke in the Revoke API Token dialog. Before you revoke a token, check that no connector or script still uses it: their next call is refused.
For a connector, a feed or a shared script, create a service account rather than a token on a person's account: the token then survives the person leaving, and the data it writes is traced to the integration.
Ana Duval runs a script that pulls the reports on the hospitality sector every Monday. On her profile, she generates a token:
- Name:
Weekly hospitality report script, so that the token is easy to find and revoke. - Duration: 90 days, to limit the damage if the token leaks.
The script calls the API with this token and sees exactly what Ana sees. On Ana's user page, you see the token, when the script last used it and when it expires. When Ana leaves the team, revoke it there.
Send an email
With an Enterprise Edition license, click Send email on the user page, choose an Email template and click Send, for example to resend the welcome email. See Customize the emails OpenCTI sends.
End sessions
A session starts at each login. lists the open sessions, grouped by user. Each one shows when it started, and how many minutes it has left out of its full length, as in 18 minutes left / 20.
- To end one session, click its delete icon in and confirm.
- To end all the sessions of a user, open the user page and click the delete icon next to Sessions, with the tooltip Kill all sessions.
Disabling or deleting a user ends their sessions on its own. End them by hand when you suspect a session was stolen, or to make a user log in again.
How long a session lasts is set by app:session_timeout, 20 minutes without activity by default. See Cookies. To limit how many sessions a user can open at the same time, set Max concurrent sessions in Manage login providers in the UI: beyond it, a new login ends the oldest sessions of the user.
Who sees which users
Lists of users across OpenCTI, such as assignees, participants and filters, can be limited to the people of your own organizations.
New in 7.260811 LTS A user sees all other users when their role has Manage credentials, Manage Playbooks or Manage customization, or when no platform organization is set and Allow users to view users of other organizations is on in Set platform security policies. With a platform organization set, that option has no effect.
Otherwise, a user sees only the users in no organization, the users of their own organizations, and service accounts. Only direct membership counts: a user who belongs to an organization only through the Organization propagation via participation rule does not see its other members, and they do not see that user.
Check that it works
Log in as the user in a private window, or read the user page: Roles, Groups and Max Confidence Level show what the user can do. To check what they see, compare their Organizations with the sharing of the data, and their groups' allowed markings with the markings of the data.
What's next
- Organize users in groups, to give users their rights.
- Create accounts for integrations, for connectors and scripts.
- Configure single sign-on, to create users from your identity provider.