List, switch off/on and delete Authentik users

Apps → Authentik gets a Users section for administrators: a searchable list
of people (service accounts left out) with status, administrator and last
sign-in, and Switch off / Switch on / Delete. Switching off sends only
is_active; deleting needs the user name typed and re-checked by the server.
The server refuses service accounts, the account the token belongs to and
the last active administrator. Each action is audited. The token field is
now "Token for making and managing users".

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
bobbanandClaude Sonnet 5.5 committed 2026-11-01 00:31:14 +01:00
1 parent aa95d6b314
commit 0cd11268ee
12 files changed
+733 -21

No files matched your search

+3 -1
View File
@@ -2,6 +2,7 @@ import { useCallback, useEffect, useState } from "react";
import { Link } from "react-router-dom";
import { api, type AuthentikInfo, type CurrentUser } from "../api/client";
import AuthentikNewUser from "../components/AuthentikNewUser";
import AuthentikUserList from "../components/AuthentikUserList";
import EmptyState from "../components/EmptyState";
import TimeAgo from "../components/TimeAgo";
import { BlockSkeleton } from "../components/Skeleton";
@@ -128,6 +129,7 @@ function Card({ a, isAdmin, onChanged }: { a: AuthentikInfo; isAdmin: boolean; o
</>
)}
{isAdmin && a.enabled && <AuthentikNewUser a={a} onChanged={onChanged} />}
{isAdmin && a.enabled && <AuthentikUserList a={a} />}
</div>
</div>
);
@@ -158,7 +160,7 @@ export default function Authentik({ user }: { user: CurrentUser }) {
<h2 className="page-title">Authentik</h2>
<p className="text-secondary">
The sign-in in front of everything else. It is read every few minutes with an API token (see <Link to="/integrations">Integrations</Link>). An <strong>outpost that goes quiet</strong> (the apps it guards stop letting anyone in), a <strong>certificate</strong> or an{" "}
<strong>API token</strong> that is about to run out, <strong>no worker</strong> and a burst of <strong>failed sign-ins</strong> are alerts — see <Link to="/alerts">Alerts</Link>.{user.role === "admin" && " An administrator can also make a user here, with a one-time link for them to choose a password."}
<strong>API token</strong> that is about to run out, <strong>no worker</strong> and a burst of <strong>failed sign-ins</strong> are alerts — see <Link to="/alerts">Alerts</Link>.{user.role === "admin" && " An administrator can also make a user here, with a one-time link for them to choose a password, and switch users off or delete them."}
</p>
<ErrorNotice error={error} />
{!data && !error && <BlockSkeleton lines={4} />}