---
title: "Administration"
description: "Users, teams, roles, organization settings and your own account in NHI Security: what each screen does and which permission it needs."
keywords: ["administration", "users", "teams", "roles", "permissions", "invitations", "organization settings", "session timeout", "sign-in mode", "branding"]
---

The **Administration** group in the console holds four screens: **Users**, **Teams**, **Roles and access** and **Settings**. A fifth, **Your account**, is reached from your name in the top bar and from the command menu, not from the rail.

How much of this you can use depends on how NHI Security is deployed. Inside TRUSTIVAN, people and their roles come from TRUSTIVAN on every request, so the parts that would create people or change roles do not exist. In a standalone deployment NHI Security keeps its own accounts and passwords, and all of it works.

## What works in which sign-in mode

| Task | Inside TRUSTIVAN | Standalone |
|---|---|---|
| See who has an account (**Users**, `GET /api/v1/users`) | Yes | Yes |
| Invite someone, or create an account | No. The **Invite someone** button is absent and `POST /api/v1/invitations` and `POST /api/v1/users` answer `404`. Add the person in AppSec's **Members** settings | Yes |
| Accept an invitation (`/nhi/accept-invitation`) | No. The page forwards to TRUSTIVAN's sign-in and the API route answers `404` | Yes |
| Change someone's display name (`PATCH /api/v1/users/{userId}`) | No, `404`. Name and email follow the TRUSTIVAN profile | API only |
| Grant or remove a role | No. The control is absent and both routes answer `404`. The role follows the person's TRUSTIVAN role | Yes |
| Suspend or reactivate an account | **Yes.** It blocks that person from NHI Security only | Yes |
| Create, rename and delete teams, manage members | Yes | Yes |
| Read **Roles and access** | Yes | Yes |
| Change **Settings** | No. The five values govern nothing here, so the screen does not offer them and the route answers `404`. See [Settings](#settings) | Yes, enforced |
| Change your password, list or end your sessions | No, the routes answer `404`. **Your account** shows your details and links to TRUSTIVAN's account settings | Yes |
| [Operator console](/nhi-security/platform-operators) at `/nhi/platform` | Not found | Yes |

<Note>
Inside TRUSTIVAN, the **Users** screen is not your membership list. An account appears the first time its holder opens NHI Security, so a member who has never opened it is missing, and someone you removed in AppSec stays listed as `active`. Their access still ends: every request is checked against TRUSTIVAN first. See [Limitations](/nhi-security/limitations).
</Note>

Every change on this page needs the **Organization Admin** role, which inside TRUSTIVAN means an Owner or an Admin. Every role can open **Users**, **Teams** and **Settings**. Every role except Developer can open **Roles and access**.

## Roles

NHI Security decides access by permission, never by role name. A role is a named set of permissions, defined in code and identical for every organization. You cannot create a role or edit what one carries. **Roles and access** (`role:read`, `GET /api/v1/authorization/model`) renders that catalogue: one card per role with its permission keys, a **yours** marker on the roles you hold, and every permission grouped by area.

| Role | Key | Permissions | What it is for |
|---|---|---|---|
| Organization Admin | `tenant_admin` | 63 (all) | Everything, including the 14 only this role holds: changing settings, inviting and suspending people, managing teams, granting and removing roles |
| Security Admin | `security_engineer` | 43 | Operates security: connectors, ownership, credentials, findings, policies, classification, the audit trail, and every approving permission. It cannot propose remediation or request a grant, an exception or a delegation, and cannot administer people |
| Security Analyst | `analyst` | 24 | The read set plus `finding:manage`, `remediation:propose`, `policy:exception:request`, `certification:review` and `delegation:request`. It asks; it never approves |
| Developer | `developer` | 16 | A narrower read set (no policies, activity or role catalogue) plus `remediation:propose`, `access_grant:request` and `policy:exception:request` |
| Auditor | `auditor` | 21 | The read set plus `audit:read` and `session:read`. Changes nothing |
| Viewer | `read_only` | 19 | The read set: inventory, findings, risk, connectors, remediation and runtime decisions. No audit trail |

Three things on that screen need reading with care:

- **Inside TRUSTIVAN only three roles are held.** Owner and Admin map to Organization Admin, Member to Security Analyst, Viewer to Viewer. The other three cards describe roles nobody has.
- **The catalogue heading reads "20 of 63 are enforced today".** That counts the permissions tagged `M1`. The tags `M2` to `M9` on the others name the release that introduced them, and routes check those permissions today.
- **`session:read` and `session:revoke` are checked by no route.** Nothing lets one person list or end another person's sessions. Suspending the account is what ends them.

### Granting and removing a role (standalone)

In **Users**, pick a role from **Grant role…** on the person's row (`role:assign`, `POST /api/v1/users/{userId}/roles` with `{"role": "auditor"}`). A person can hold several roles and gets the union of their permissions. The control is not shown on your own row.

Removing a role has no console control. Call `DELETE /api/v1/users/{userId}/roles/{role}` (`role:revoke`). It is refused when it would leave the organization with no active Organization Admin. A removal applies on the person's next request, because permissions are read again each time. Their sessions are not ended.

## Users

**Users** (`user:read`) lists each account with its status, roles, teams and last sign-in.

| Status | Meaning | Can sign in |
|---|---|---|
| `invited` | The account exists and no password has been chosen | No |
| `active` | Normal | Yes |
| `suspended` | Access removed, intended to be reversible | No |
| `disabled` | Access removed for good. The record stays so audit entries keep their actor | No |

A **locked** pill beside the status means a lockout was recorded for the account after repeated failed sign-ins. The lockout lasts for the duration set in [Settings](#settings).

The row button offers **Suspend** or **Reactivate** (`PATCH /api/v1/users/{userId}/status` with `{"status": "suspended"}` or `"active"`). Suspending or disabling ends every session the account has. You cannot change your own status, and the last active Organization Admin cannot be suspended or disabled. Disabling is API only: send `"disabled"`. A disabled account returns to `active` in two steps, through `suspended`. No route deletes an account.

### Invite someone (standalone)

<Steps>
  <Step title="Create the invitation">
    In **Users**, select **Invite someone**, enter the email address and choose the **Role on acceptance** (`user:invite`, `POST /api/v1/invitations` with `email` and `role`).
  </Step>
  <Step title="Send the link yourself">
    The console shows the acceptance link once. NHI Security sends no email, and stores only a digest of the token, so the link cannot be shown again. Copy it and deliver it yourself.
  </Step>
  <Step title="The person accepts">
    They open the link, enter their name and choose a password that meets your organization's minimum length. The account becomes `active` with the role you chose, and they sign in with the organization identifier, their email and that password.
  </Step>
</Steps>

An invitation works once and expires after seven days. A second invitation to an address with one outstanding is refused, as is one to an address that already has a working account. **Outstanding invitations** lists what has not been accepted. Revoking one has no console control: call `DELETE /api/v1/invitations/{invitationId}`, then invite again. A link that cannot be used gets one answer, "That invitation is no longer valid", whether it expired, was used, was revoked or never existed.

Nobody can set another person's password. `POST /api/v1/users` (`user:create`) creates an `invited` account with no credential, and that account still needs an invitation before anyone can use it.

## Teams

A team records **accountability**, never access: membership grants no permission. Its purpose is to own non-human identities, so that ownership survives a person leaving. See [Ownership](/nhi-security/ownership).

**Teams** (`team:read`) lists each team with what it owns (its description), its member count and its creation date. Create one with a name of up to 120 characters, unique in the organization, and an optional description (`team:create`, `POST /api/v1/teams`). Delete one from its row (`team:delete`).

Two things are API only today:

- **Renaming:** `PATCH /api/v1/teams/{teamId}` with `name` or `description` (`team:update`).
- **Membership:** `GET`, `POST` and `DELETE` on `/api/v1/teams/{teamId}/members` (`team:member:manage`). `POST` takes a `userId` and an optional `membershipRole` of `member` (the default) or `lead`, and changes the standing of someone already in the team.

A **lead** is who gets asked about the identities the team owns. It is a label, not an authorization role. Reassign the identities a team owns before you delete the team.

## Settings

**Settings** (`organization:read`, `GET /api/v1/organization`) shows the organization's name, its identifier (the slug used at standalone sign-in, which no route changes) and whether it holds demonstration fixtures or customer data. Below that are five security parameters, editable with `organization:update` through `PATCH /api/v1/organization/settings`. Send any subset as whole numbers; a value outside its bounds is refused.

| Parameter | Field | Default | Bounds |
|---|---|---|---|
| Idle timeout (minutes) | `sessionIdleMinutes` | 30 | 5 to 480 |
| Maximum session length (hours) | `sessionAbsoluteHours` | 12 | 1 to 168 |
| Minimum password length | `passwordMinLength` | 12 | 12 to 128 |
| Failed sign-ins before lockout | `maxFailedLogins` | 10 | 3 to 100 |
| Lockout duration (minutes) | `lockoutMinutes` | 15 | 1 to 1440 |

Tightening a session limit does not shorten sessions that already exist. Their deadlines were set when they were issued, and the new idle window applies from each session's next extension. A password is also refused when it is longer than 256 characters, contains the part of your email address before the `@`, is one repeated character, or contains a run of six sequential characters.

<Warning>
**Inside TRUSTIVAN these five values do not apply.** They are read only by NHI Security's own password sign-in, its own sessions, password changes and invitation acceptance, none of which exist in that mode. So the screen shows the organization and says sign-in is managed in TRUSTIVAN, and `PATCH /api/v1/organization/settings` answers `404`.
</Warning>

## Your account

In a standalone deployment, **Your account** shows your name, email, organization, roles and permission count, and lets you:

- **Change your password** (`POST /api/v1/auth/password` with `currentPassword` and `newPassword`). Every other session you have is ended; the one you are using stays.
- **Review your active sessions**, each with when it started, when it was last used, when it expires, its source address and client, and end any of them (`DELETE /api/v1/auth/sessions/{sessionId}`).
- **Sign out everywhere** (`POST /api/v1/auth/sign-out` with `{"everywhere": true}`).

None of these needs a permission, and none can act on anyone else: the subject is always the signed-in caller. There is no self-service password reset. If you forget your password, an Organization Admin cannot set one for you, and no route invites an address that already has a working account.

## Branding

The company name, product name, logos and colours the console renders come from `GET /api/v1/branding/current`, a public route that needs no sign-in. It always returns the deployment's default brand, which database migrations seed. No route and no screen changes it, for an organization or for the deployment. The schema can hold a brand per organization, and the route never looks one up.

## Where to go next

<Columns cols={2}>
  <Card title="Platform operators" icon="server" href="/nhi-security/platform-operators">
    The separate operator console that provisions organizations in a standalone deployment.
  </Card>
  <Card title="Governance and audit" icon="book-open" href="/nhi-security/governance-and-audit">
    Where every change on this page is recorded, and who can read it.
  </Card>
  <Card title="Ownership" icon="users" href="/nhi-security/ownership">
    Assigning an identity to a person or a team.
  </Card>
  <Card title="Limitations" icon="triangle-alert" href="/nhi-security/limitations">
    People, roles and offboarding inside TRUSTIVAN.
  </Card>
</Columns>
