Users, Profiles and Organizations
Users, profiles and organizational units form the data model from which primedocs assembles the sender and author details of a document. This page describes what these objects are and how they relate to each other. How they are created and populated is described in Provisioning.
Concept
Datasource
A datasource is a tenant instance of primedocs. It comprises its own database holding all templates, snippets, users, profiles, organizational units and permissions. Every object described on this page belongs to exactly one datasource.
In most cases a primedocs installation runs a single datasource. Several datasources on the same instance separate production from test data, for example, or one organization from another. They share the server installation and the Identity Server, but no content. The configuration is described in primedocs.config.
Users
A user in primedocs typically represents a person within the organization, i.e., an employee who uses primedocs is stored as a "User" in the database.
The assignment is done using the so-called "Primary SID". Depending on the authentication method, this corresponds either to the Active Directory objectSid (in the format S-1-5-…) or the Entra ID objectId (in the format of a GUID).
The directory (Entra ID or Active Directory) only establishes who signs in, and supplies the PrimarySid while doing so. Which data that person holds in primedocs is decided by primedocs itself. The PrimarySid is merely the key that connects the two. See Authentication and Provisioning.
However, a user does not necessarily have to be associated with a real person. There can also be technical user accounts.
The following properties are associated with a user:
- Title
- PrimarySid
- Group memberships, which are loaded via the so-called
PrincipalConnector - Defined user fields, which can be synchronized from other sources via the User synchronization.
Additionally, a user can have one or more profiles.
Users are usually not created by hand: they are created automatically as soon as a person signs in for the first time. See Onboarding & Offboarding.
Profiles
A profile is associated with both a user and an organizational unit. It allows, for example, a user with multiple roles within the company to represent these roles within primedocs.
In primedocs, documents are always generated via a profile. This ensures the connection between user data and organizational data.
A profile can also be shared with other users, allowing, for instance, another employee to use the profile for document generation as well. A share can additionally include an editing right that allows the authorised person to maintain the profile (data fields, signatures, organizational unit). Without that right, the share is read-only. The editing right is granted independently of usage: it only allows editing, not using the profile. Deleting, re-sharing and setting the default profile remain reserved for the owner or administrators.
For another person's profile with write access, the permitted organisation units of the profile owner apply. The editor's permissions do not determine this selection. In the Desktop Client, this assignment requires a connection to the primedocs server and is not available in offline mode.
A profile has the following properties:
- Title
- Assignment to a user
- Assignment to an organization
The profile always contains the corresponding user and organizational fields. However, these can be overridden at the profile level if necessary.
The profile itself can be shared with other users either manually or automatically via profile sharing policies.
When a user is created, a default profile is created along with them. It is assigned to the organizational unit that follows unambiguously from the user's permissions. Where several units on the same branch are permitted, that is the lowest one.
Field inheritance
Fields are inherited: from a parent organizational unit to its children, from the user and the organizational unit to the profile, and from the default language to the other document languages. The complete rules, including field locks, are described under Field inheritance and field locks.
Three states are distinguished per field definition and document language:
| State | Meaning |
|---|---|
| Inherited | No own value is stored on the profile. The value comes from the user, the organizational unit or the default language and follows changes to the source value. |
| Own value | A value is stored on the profile. It overrides the inherited value. Changes to the source value no longer apply. |
| Deliberately empty | An empty value is stored on the profile. It also overrides the inherited value. The field stays empty although an inherited value exists. For image fields this is how a profile without a signature image is run (functional mailbox, departmental signature). |
The own value can be reset in primedocs Web. Inheritance then applies again. This holds for text, selection and image fields.
The "deliberately empty" state is set in primedocs Web. In the Web Admin, fields only offer "own value" and resetting to the inherited value.
Organizations
Organizational units represent the structure of the company. They can be organized in a hierarchical structure and can be assigned permissions.
Permissions ensure that only authorized users can assign a specific organizational unit to a profile.
An organizational unit has the following properties:
- Title
- If part of a hierarchy: the ID of the parent organizational unit
- Defined organization fields
Organizational units are usually maintained directly in primedocs. Where a third-party system owns the organizational structure, they can optionally be created and managed automatically using the Organization synchronization.
Color Themes and Fonts
In addition to standard fields (such as text, images, or checkbox values), organizational units support two special field types: Color Theme and Font Theme. Both are stored as XML on the organizational unit and, like all other fields, are inherited by subordinate organizational units. If multiple themes are defined, users can choose between them in the Office ribbon.
- Color Theme: defines the CI/CD color palette (accent and hyperlink colors as well as specific chart colors). For the structure, attributes and a complete example, see Color themes.
- Font Theme: defines the fonts (
MajorFont/MinorFont, additionalFonts) and bullet styles. For the structure, attributes and a complete example, see Font themes.