Skip to content

Administration

The admin section is accessible to superadmins only and is reachable from the sidebar. It covers five areas: organisations, departments, users, access management, and settings.

The LEAF Portal uses a three-level hierarchy for organising data access:

Organisation
└── Department
└── Entity (individual sensor / device)

Access to sensor data is controlled through access grants (managements), which bind a user to a scope within this hierarchy.

URL: /admin/organisations

Organisations are the top-level tenants — typically an organisation, company, or research group. Each department belongs to exactly one organisation.

Organisations overview

  1. Click Add organisation.
  2. Enter a unique name.
  3. Click Save.

An organisation can only be deleted if it has no departments. Remove all departments first.

URL: /admin/departments

Departments are subdivisions within an organisation. Sensor data is always tagged with a department.

Departments overview

  1. Click Add department.
  2. Select the parent organisation.
  3. Enter a name (unique within the organisation).
  4. Click Save.

Click the members icon on a department row to manage which users are associated with that department. Department membership is used for alarm rule ownership and portal UI filtering — it does not by itself grant data access (see Access Management below).

URL: /admin/users

User accounts can be created, edited, and deleted here. Each user has a name, email address, and password.

alt text

  1. Click Add user.
  2. Fill in name, email, and password.
  3. Optionally tick Superadmin to grant full admin access.
  4. Click Save.

Portal admin settings

Click the edit icon on a user row and enter a new password.

Users can also reset their own password via the forgot-password link on the login page, provided SMTP is configured in Settings.

URL: /admin/access-management

Access grants (called managements) define what sensor data a user can see. A management is a named scope with optional filters:

FieldMeaning
OrganisationWhich organisation’s data is included
DepartmentRestrict to one department (optional)
EntityRestrict to one entity / sensor (optional)
Time startOnly data from this timestamp onwards (optional)
Time endOnly data up to this timestamp (optional)

Leaving a field empty means no restriction at that level. For example, a management with only an organisation set gives the user access to all data in that organisation across all departments.

User access

  1. Click New access grant.
  2. Enter a descriptive name.
  3. Select the organisation and optionally narrow the scope.
  4. Click Save.
  5. Open the grant and add users to it via the members button.
Use caseOrganisationDepartmentEntity
Full organisation accessWUR
Single departmentWURSSB
Single entityWURSSBR1

(settings)=

URL: /admin/settings

Reconnect the portal to a different TimescaleDB instance without restarting. Enter the new connection details and click Save & reconnect. The new credentials are also written to the .env file so they persist across restarts.

FieldExample
Hosttimescaledb.example.com
Port5432
Userleaf
PasswordDatabase password
Databaseleaf_portal

Configure the outgoing mail server used for alarm notifications and password reset emails.

FieldExample
Hostsmtp.example.com
Port587
Userleaf@example.com
PasswordSMTP password
Fromleaf@example.com