Connecting mosques and communities
📖 Help Center & User Manual · Documentation Version 1.0

Kariahku.com User Manual & Help Center

Official step-by-step documentation for the Kariahku.com Multi-Tenant Mosque Management System.

Kariahku.com Multi-Tenant Mosque Management System

SEC-05E — Managing Mosque Administrators, Workspace Staff & Tenant Isolation (/mosque-admin/members)

Official step-by-step documentation for the Kariahku.com Multi-Tenant Mosque Management System.

Documentation Version: 1.0
Generated On: 2026-12-05 00:44 UTC
Articles: 1

Table of Contents

  1. [SEC-05E] Managing Mosque Administrators, Workspace Staff & Tenant Isolation (/mosque-admin/members) — Section 5: Mosque Registration and Management
SEC-05E · Section 5: Mosque Registration and Management ✓ Fully Implemented

Managing Mosque Administrators, Workspace Staff & Tenant Isolation (/mosque-admin/members)

How to assign, update, or deactivate Mosque Administrators, Editors, and Workspace Members at /mosque-admin/members, including last-Mosque-Admin protection and multi-tenant isolation rules.

Purpose of Function Allow Mosque Administrators to delegate workspace access to authorized mosque staff while enforcing strict tenant isolation.
Prerequisites The target user must already have an account in the `users` table.
Required User Permissions Mosque Scope: mosque.manage (/mosque-admin/members)

1. Assigning a User to the Mosque Workspace (/mosque-admin/members)

  1. Sign in as mosque_admin and open /{lang}/mosque-admin/members.
  2. In the assignment form:
    • Enter the existing user’s Email address.
    • Select the Mosque Role: Mosque Admin (mosque_admin), Mosque Editor (mosque_editor), or Mosque Member (mosque_member).
    • Select the Status (active or inactive).
  3. Click Save. The assignment is stored in mosque_users for the active mosque_id.

2. Last Mosque Administrator Safeguard

The system prevents demoting or deactivating the last active mosque_admin for a mosque. Always assign and activate a replacement mosque_admin before removing or downgrading the existing administrator.

3. Multi-Tenant Independence & Data Boundaries

  • Role grants in mosque_users apply exclusively to the specified mosque_id.
  • Each mosque tenant can access only its own profile, microsite, activities, kariah areas, kariah members, and billing records.
Managing Mosque Administrators, Editors, and Workspace Staff (/mosque-admin/members).
Managing Mosque Administrators, Editors, and Workspace Staff (/mosque-admin/members).

Input Fields & Options Reference

FieldAllowed ValuesDescription
emailRegistered user emailMust match an existing account in the users table.
role_idmosque_admin, mosque_editor, mosque_memberOnly scope = 'mosque' roles are accepted.
statusactive / inactiveControls whether the assignment is active for this mosque.
Expected Results: The user role assignment for the mosque is updated in `mosque_users` and logged in `audit_logs` (`mosque.user.assigned`).
Important Notes & Data Boundaries: Note the distinction: `/mosque-admin/members` manages administrative workspace users (`mosque_users`), whereas `/mosque-admin/kariah-members` manages community kariah membership (`kariah_members`).

Common Errors & Troubleshooting

If you see "Unable to assign that user and role", verify that the email exists in users and that at least one active mosque_admin remains assigned to the mosque.