Find an account
Open Administration → Users Access Control (/user-access-control). The Users tab shows the name, email, roles, status and linked employee. Search for part of the first and last name in that order, or the email address. Search is case-insensitive. The initial page size is 10, with sizes of 20, 50 and 100 also supported. If an HR link opened the list with ?id=, choose All to clear the user filter.
Approve a pending account
The Pending tab displays the name, email and status of accounts with status 0. Previously deactivated accounts also meet this condition. Verify the address and the reason for granting access before approving the row. Approval changes status 0 to 1. You cannot approve your own account or a super administrator this way. If the row is still visible, refresh and check its status on the Users tab.
The tab requests the newest 20 records and does not request additional pages or send a search term. For an older record, search by email on the Users tab. Approving an account and assigning a role are separate actions.
Invite an employee or link an existing account
If there is no account, open the HR employee list. Select Send invitation for the employee with a contact email, verify the address and confirm. HR invitations require employees.invite. The link is valid for one day. Registered employees and employees with a current invitation are skipped. For a current invitation, check the original email. An expired invitation can be sent again. Bulk sending returns the sent and skipped addresses separately.
For an existing account, choose the employee-link action in the user's row menu. Enter at least two characters. The dialog returns up to ten employees per search. Refine the query if the intended employee is missing. Check the full name and contact email. Choose Attach for an available record. An employee already linked to a user shows that user's details and cannot be attached twice. To correct a link, check both records and detach the employee from the previous account first. Detaching clears the employee association and turns off use of the employee's photo.
The API also supports a direct invitation with first name, last name, unique email and roles. This administration page has no direct-invitation button. For self-registration, the role specifies one of three modes — no documents, the applicant's own documents, or the applicant's and a second person's documents. Registration request statuses (pending, accepted, rejected and suspended) track the request. The Pending tab lists user accounts.
Assign a role and scope
- Open the role and scope action for the user. Main roles and scopes inherited from employment records are read-only. If an employment role or scope is marked deleted, inspect the employee's work record.
- Add an assignment and select a role. The role definition determines its scope type. The editor supports faculty, department, profession and subject. For a scoped role, choose a record from the corresponding directory. Changing the role clears the previous scope. An unscoped role needs no selection. Branch has no separate selector here. Roles
- Save the assignment. The same user, role and scope combination must be unique. To grant a second scope, add a second assignment. An existing direct assignment can be edited or removed. The protected super administrator role is managed separately.
- Check the intended action in the target module. The scope specifies the assigned entity, and the role's permissions determine available actions. Role permissions
Change status or close access
The Users tab distinguishes inactive (0), active (1), rejected (2) and super administrator (5). To enable an ordinary inactive or rejected account, choose activate and confirm. For an active account choose deactivate. Deactivation saves status 0, revokes access tokens and queues an email. Activation from the main list also sends an email. Deactivation allows access to be restored when an employee returns.
Deletion is a separate super administrator action. Check the email in the confirmation dialog. You cannot delete yourself or another super administrator. Confirmation marks the account deleted, revokes tokens and removes sessions and password reset records. This page offers no restore action.
Permissions and example
The tabs use users.index and pending.index respectively. Pending approval uses pending.activate. The main list uses users.activate and users.deactivate for status changes. Employee linking and unlinking require users.attach-employee or users.detach-employee and employee-list access. Direct role assignments use user-access-role.role-management and the role, faculty, department, profession and subject directories. The delete route is users.destroy and the server checks super administrator status. The user-list routes declare no organisational data_scope.
For example, a mathematics department employee needs access to their department. Find the account by work email, link the corresponding employee record and check roles already inherited from their employment. If the required role is missing, assign the approved department-scoped role and choose Mathematics. Verify the saved assignment and the actions available to the user in the target module.
Implementation references
- frontend-edusystems · src/pages/Administration/UserAccessControl/components/UserAccessTabPages/UserAccessTabPages.tsx
- frontend-edusystems · src/pages/Administration/UserAccessControl/components/UserTable/App/UsersTable.tsx
- frontend-edusystems · src/pages/Administration/UserAccessControl/components/PendingUserTable/columns/App/index.tsx
- frontend-edusystems · src/pages/Administration/UserAccessControl/components/AttachEmployeeModal/AttachEmployeeModal.tsx
- frontend-edusystems · src/pages/Administration/UserAccessControl/components/AssignRoleUser/AssignRoleDynamicForm.tsx
- frontend-edusystems · src/pages/Administration/UserAccessControl/store/thunk.ts
- frontend-edusystems · src/pages/HR/Employees/container/index.tsx
- backend-edusystems · api.php
- backend-edusystems · Controllers/UserController.php
- backend-edusystems · Authentication/Enums/RegistrationType.php
- backend-edusystems · Employees/Services/EmployeeInviteService.php
- backend-edusystems · UserAccessControl/routes/api.php
- backend-edusystems · UserAccessControl/Http/Requests/Roles/AttachUserRoleFormRequest.php
- backend-edusystems · UserAccessControl/Http/Requests/InvitationFormRequest.php
- backend-edusystems · UserAccessControl/Services/UserAccessControlService.php
- backend-edusystems · UserAccessControl/Services/UserAdministrationService.php