> Source: https://docs.cyberelements.io/saas/no/Usage/Administration/AdminConsole/MainWorkPanel/AuthenticationDomains/UserGroups/

# User groups

A **user group** is the unit rights are granted to. CyberElements never gives an application to an account: it gives it to a group, through an [access policy](https://docs.cyberelements.io/saas/no/Usage/Administration/AdminConsole/MainWorkPanel/AccessPolicies/AccessContracts/). The breakdown into groups therefore shapes all the configuration that follows.

A group belongs to **one and only one** [domain](https://docs.cyberelements.io/saas/no/Usage/Administration/AdminConsole/MainWorkPanel/AuthenticationDomains/AuthenticationDomains/). There is no cross-domain group: two domains that must receive the same access require two groups, and one access policy naming both.

![](https://docs.cyberelements.io/saas/img/cyberelements/CYE_AdminConsole_UserGroups_Module.png)

## Management by domain type

Depending on the selected domain, group management differs, and the add buttons may be greyed out without that indicating a missing right.

| Domain | Who creates the groups |
|---|---|
| [Local directory](https://docs.cyberelements.io/saas/no/Usage/Administration/AdminConsole/MainWorkPanel/AuthenticationDomains/LocalDirectory/) | The administrator, by hand. |
| [LDAP in standard mode](https://docs.cyberelements.io/saas/no/Usage/Administration/AdminConsole/MainWorkPanel/AuthenticationDomains/LDAPDirectory/) | The directory. The module is **read-only** (by design, not through lack of rights). |
| [LDAP with manual group management](#manual-group-management) | The administrator. The *Description* field stays hidden: it comes from the directory. |
| [SAML domain](https://docs.cyberelements.io/saas/no/Usage/Administration/AdminConsole/MainWorkPanel/AuthenticationDomains/SAMLDirectory/) | The administrator, each group carrying the **external identifier** of the group on the identity provider side. A CSV import or the API are available. |

> **External identifier of a SAML group**
>
> It is that identifier, not the displayed name, that must match what the IdP emits in its assertion. With a wrong external identifier, the group matches no user, whatever its name on the CyberElements side, and no error is visible.

## Manual group management of an LDAP domain

By default, the groups of an [LDAP domain](https://docs.cyberelements.io/saas/no/Usage/Administration/AdminConsole/MainWorkPanel/AuthenticationDomains/LDAPDirectory/) come from the directory, and the module is read-only. The **Manual groups management** box, in the domain's LDAP settings, changes this behaviour: groups are no longer taken automatically from the directory, and the administrator **adds and removes** the ones CyberElements must know, under the name they carry in the directory. Only those groups can then receive accesses.

In this mode, the group's *Description* field is hidden: it comes from the directory.

## Group breakdown

Two breakdowns usually coexist:

- **by job or population**: these are the ones that receive applications;
- **by privilege level** (administrators, privileged accounts, contractors), because these are the ones subjected to stricter [access conditions](https://docs.cyberelements.io/saas/no/Usage/Administration/AdminConsole/MainWorkPanel/AccessPolicies/AccessConditions/AccessConditions/) or to a second factor.

Since an account can belong to several groups, the two breakdowns overlay without conflicting.

## Import of SAML domain groups

A SAML domain exposes no directory to browse: its groups are declared by hand, each carrying the identifier its identity provider gives it. When there are many, two means avoid entering them one by one:

- a **CSV import**, which follows a specific format (columns, delimiters) described in the [module reference](https://docs.cyberelements.io/saas/no/Usage/AdminConsoleReference/UserGroups/). The import creates groups, it does not update them;
- the **API**, which exposes the creation of the groups of a SAML domain (see the [API reference](https://docs.cyberelements.io/saas/no/API/APIGuide/)).

## Limits

- A group **cannot change domain**: the attachment is made at creation.
- On a standard LDAP domain it can be **neither created nor deleted** from the console.
- Deleting a group still named by an access policy is refused; the console returns a **report** stating what was deleted and what was not.

---

The details of the form fields and of the special cases of deletion are described in the [module reference](https://docs.cyberelements.io/saas/no/Usage/AdminConsoleReference/UserGroups/).
