Stage 10 of 17
The Visitor Management system handles personal data about visitors. Security is not optional. This stage covers the security model, permission configuration, the critical distinction between UI hiding and real security, and the export risk that is often overlooked.
Why Security Matters Here More Than Usual
This is the most important concept in this stage.
In the Power Apps canvas app, you can hide buttons and screens from certain users using the Visible property. For example: Visible: IsReception. This means the Check In button is not visible to employees who are not in the reception group.
But this does not prevent an employee from accessing the data directly. If an employee navigates to the SharePoint Visits list directly (not through the app), they can see all visit records — including visitor names, organisations, and purposes — if they have Contribute permission on the site.
The Rule
UI hiding controls what users can do in the app. SharePoint permissions control what data users can access. Both are needed. UI hiding alone is not security.
The Visitor Management system uses a two-layer security model:
Layer 1 — SharePoint Permissions
Controls who can access the data at all. Enforced by SharePoint regardless of how the user tries to access the data (app, browser, API).
Layer 2 — Power Apps UI Controls
Controls what users can see and do within the app. Enforced by the app only. Does not prevent direct SharePoint access.
Employees
ContributeMembers
All Contoso Services employees (via the "All Employees" Microsoft 365 group)
Can Access
Can create new visit records (pre-register). Can edit their own records (cancel). Cannot edit other employees' records.
Limitation: With Contribute permission, employees can read all records in the list directly via SharePoint. This is a known limitation — see below.
Configuration Steps
Reception
EditMembers
Reception staff at all three offices
Can Access
Can create, read, and edit all visit records. Can check in and check out visitors. Can mark no-show.
Limitation: None beyond the standard Edit permission.
Configuration Steps
Facilities
ReadMembers
Facilities and security staff
Can Access
Can read all visit records. Cannot create, edit, or delete.
Limitation: Read-only access means Facilities cannot check out visitors. This is intentional — check-out is a reception function.
Configuration Steps
Administrators
Full ControlMembers
IT Manager and designated administrators only
Can Access
All actions including delete records, manage permissions, manage retention.
Limitation: Full Control should be granted to as few people as possible.
Configuration Steps
A risk that is often overlooked
Microsoft Lists allows users with Edit or higher permission to export the list to Excel. This means a reception staff member could export the entire Visits list — including all visitor names, organisations, and purposes — to a spreadsheet on their local computer.
This is a data protection risk. The exported spreadsheet is outside the control of the SharePoint permission system. It could be emailed, shared, or left on an unencrypted device.
Mitigations
Give users the minimum access they need to do their job.
The least privilege principle means that every user should have the minimum level of access required to perform their role. In this system:
Visitor records must be deleted after the approved retention period (12 months from visit date, per REQ-021). The automated deletion process is designed in the Challenge stage. Until that automation is in place, an administrator must manually delete records older than 12 months on a regular basis.
Interim process: The IT Manager (Priya Mehta) will review the Visits list on the first working day of each month and delete records where ExpectedDate is more than 12 months ago.
Employee cannot view another employee's visit records via the app
Log in as Employee A. Navigate to My Upcoming Visits. Verify only Employee A's visits are shown.
Employee cannot check in a visitor via the app
Log in as an employee (not reception). Navigate to Today's Visitors. Verify the Check In button is not visible.
Facilities user can view all visits (read-only)
Log in as a Facilities user. Navigate to Today's Visitors. Verify all visits are visible. Verify no edit buttons are shown.
Reception can check in and check out visitors
Log in as a reception user. Check in a test visitor. Check out the same visitor. Verify both actions succeed.
Employee cannot export the Visits list
Log in as an employee. Navigate to the Visits list in SharePoint. Verify the "Export to Excel" option is not available (Contribute permission does not include export).
Visitor records are not visible to unauthorised users
Log in as a user with no permission on the Visitor Management site. Attempt to navigate to the site URL directly. Verify access is denied.
Flow connections are owned by a service account or IT Manager
Open both flows in Power Automate. Verify the connections are authenticated as the IT Manager or a service account, not an individual employee.
Need more help with the concepts?
Visit DosToDigital for guides, templates, and deeper explanations.