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:
1 parent
aa95d6b314
commit
0cd11268ee
12 files changed
+733
-21
No files matched your search
@@ -25,7 +25,7 @@ export default function AuthentikNewUser({ a, onChanged }: { a: AuthentikInfo; o
|
||||
if (!a.canCreateUsers) {
|
||||
return (
|
||||
<div className="text-secondary small mt-3">
|
||||
To make users from here, give this Authentik a token that may add users: <Link to="/integrations">Integrations</Link> → edit → <em>Token for making users</em>.
|
||||
To make and manage users from here, give this Authentik a token that may add, change and delete them: <Link to="/integrations">Integrations</Link> → edit → <em>Token for making and managing users</em>.
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -68,7 +68,7 @@ export default function AuthentikNewUser({ a, onChanged }: { a: AuthentikInfo; o
|
||||
}
|
||||
|
||||
async function stopAllowing() {
|
||||
if (!(await confirmDialog({ title: "Stop making users", message: `Remove the token for making users from "${a.name}"? Reading it carries on. You can add one again under Integrations.`, confirmLabel: "Remove", danger: true }))) return;
|
||||
if (!(await confirmDialog({ title: "Stop managing users", message: `Remove the token for making and managing users from "${a.name}"? Reading it carries on. You can add one again under Integrations.`, confirmLabel: "Remove", danger: true }))) return;
|
||||
try {
|
||||
await api.authentik.removeWriteToken(a.id);
|
||||
close();
|
||||
|
||||
Reference in new issue
Block a user