﻿# User management

> Who can sign in, and with which application permissions, depends on the user store configured in appsettings.json (Authentication):

Source: https://workwise-solutions.net/docs/features/user-management/ · Language: en · Hungarian version: https://workwise-solutions.net/hu/docs/features/user-management/

Who can sign in, and with which application permissions, depends on the **user store** configured in `appsettings.json` ([Authentication](https://workwise-solutions.net/docs/installation/authentication/)):

| User store | Users come from | Managed on |
|---|---|---|
| Local (default) | The application's own database | **Felhasználók** and **Csoportok** |
| Active Directory, LDAP, Microsoft Entra ID | Your directory | The directory; permissions on **Profilok** |
| (any) plus external users | The application's database, separate from the main store | **Külső Felhasználók** and **Külső Csoportok** |

## Local users (Felhasználók)

Menu: **Felhasználók & Csoportok → Felhasználók**, shown with the Local user store to users with *Local user reader*. Creating, editing and deleting users, and the token actions, need **Super admin**.

![Local users](https://workwise-solutions.net/docs/images/users-local.png)
*Columns: e-mail, display name, permissions, created, number of sign-ins, last sign-in.*

Row actions: **Csoportok** (the user's groups), **Módosítás** (Edit), **Személyes hozzáférési token létrehozása** (create a token for the user), **Személyes hozzáférési tokenek lekérdezése** (list the user's tokens), **Törlés** (Delete).

**Új lokális felhasználó létrehozása** (Create local user):

| Field | Notes |
|---|---|
| Email | The sign-in name. |
| Jogosultságok | Application permissions; see [Permissions and roles](https://workwise-solutions.net/docs/permissions-and-roles/). Selecting a permission also selects the ones it includes. Most users need only *Public* plus workspace roles. |
| Jelszó automatikus generálása | On by default: a password is generated and shown once, with a copy button. Untick it to type a password. |
| Megjelenítési név | Display name. |
| Értesítő email küldése a felhasználói adatokról | Optional: e-mails the sign-in details (e-mail, temporary password, display name, permissions, and an optional message) to an address you give. Uses the SMTP server of `appsettings.json`. |

![New user](https://workwise-solutions.net/docs/images/users-create.png)

When editing, **Jelszó módosítása** sets a new password.

## Groups (Csoportok)

Groups make workspace permissions easier: give the role to the group once, and manage the members. **Új lokális csoport létrehozása** creates a group (only a name). Row actions: **Tagok** (members), **Módosítás**, **Törlés**. Managing groups needs *Local user group admin*.

![Groups](https://workwise-solutions.net/docs/images/users-groups.png)

![Group members](https://workwise-solutions.net/docs/images/users-group-members.png)
*Csoport tagok kezelése: add users with the search field and Hozzáad.*

## External users and groups (Külső Felhasználók, Külső Csoportok)

External users are a separate user list in the application's database, next to the configured main user store. Use it for people who are not in your directory, for example a partner company's technicians, while your own staff signs in with Active Directory or Entra ID. External users sign in with **Bejelentkezés külső felhasználóként** (Sign in as an external user) on the sign-in page, and have their own password reset.

Seeing the pages needs *External user reader*; managing external groups needs *External user group admin*; creating and editing external users needs Super admin. The pages work like the local ones.

![External users](https://workwise-solutions.net/docs/images/users-external.png)

## Profiles (Profilok)

With Active Directory, LDAP, Microsoft Entra ID or OAuth, users are not created in WorkSmartHub: a **profile** is created at their first sign-in. The **Profilok** page (Super Admin, shown only with a non-local user store) lists these profiles and lets you set their application permissions, one by one or for several selected profiles at once (*Módosítsa a profilok engedélyeit*), and delete profiles. Permissions set here override what comes from the directory. Users and groups listed in `AdminUsers`/`AdminGroups` get Super admin when their profile is created.

This page cannot be shown in this wiki's screenshots, because the demo installation uses the Local user store.

## Deleting users

Deleting a user asks for confirmation and cannot be undone. Remove the user from tickets and workspaces where they had a role, or give those roles to a group, so that no work is left without an owner.
