Stage 10 of 17

Stage 10 of 17

Security

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

Most business applications handle internal data. This application handles personal data about people who are not employees of Contoso Services — visitors who have not consented to their data being seen by all 240 employees. The Data Protection Officer has made clear that access must be restricted. Getting this wrong is not just a technical problem — it is a legal one.

The Critical Lesson: UI Hiding Is Not Security

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.

Security Model

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.

Permission Groups

Employees

Contribute

Members

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

  1. 1.Navigate to the Visitor Management SharePoint site.
  2. 2.Select Settings (gear icon) → Site permissions.
  3. 3.Select "Grant permissions".
  4. 4.Enter the "All Employees" Microsoft 365 group.
  5. 5.Select "Contribute" permission level.
  6. 6.Uncheck "Send an email invitation".
  7. 7.Select Share.

Reception

Edit

Members

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

  1. 1.Create a Microsoft 365 group named "VM-Reception".
  2. 2.Add all reception staff to the group.
  3. 3.Grant the VM-Reception group Edit permission on the Visitor Management site.

Facilities

Read

Members

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

  1. 1.Create a Microsoft 365 group named "VM-Facilities".
  2. 2.Add all facilities and security staff to the group.
  3. 3.Grant the VM-Facilities group Read permission on the Visitor Management site.

Administrators

Full Control

Members

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

  1. 1.Create a Microsoft 365 group named "VM-Administrators".
  2. 2.Add only the IT Manager and designated administrators.
  3. 3.Grant the VM-Administrators group Full Control on the Visitor Management site.

The Export Risk

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

  • ▸Restrict Edit permission to the minimum number of users (reception staff only, not all employees).
  • ▸Include export risk in the staff training for reception.
  • ▸Consider whether the Facilities group needs Edit or Read-only access — Read-only prevents export.
  • ▸For a higher-security environment, consider Microsoft Purview Information Protection to classify and protect exported data. POTENTIAL PREMIUM LICENSING

Least Privilege Principle

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:

  • ▸Employees need Contribute (create and edit own records). They do not need Edit (edit all records).
  • ▸Facilities need Read (view records). They do not need Contribute or Edit.
  • ▸Reception need Edit (create and edit all records). They do not need Full Control.
  • ▸Only administrators need Full Control.

Retention and Data Protection

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.

Security Checks

SC-001

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.

SC-002

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.

SC-003

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.

SC-004

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.

SC-005

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).

SC-006

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.

SC-007

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.

Stage Complete — What You Now Have

  • ✓Two-layer security model explained (SharePoint permissions + UI controls)
  • ✓Critical lesson: UI hiding is not security
  • ✓4 permission groups configured with step-by-step instructions
  • ✓Export risk identified with mitigations
  • ✓Least privilege principle applied
  • ✓Retention interim process defined
  • ✓7 security checks
NextTest

Need more help with the concepts?

Visit DosToDigital for guides, templates, and deeper explanations.

DosToDigital
DToD Labs

Learn it. Build it. Make it work.

A DosToDigital Project

About DToD Labs

Practical technology learning for Microsoft 365 and Power Platform. Build real business solutions from real business problems.

Learn the concepts at DosToDigital. Put them into practice at DToD Labs.

DToD Labs provides practical learning projects for educational purposes. Microsoft services, interfaces, licensing and product capabilities change over time. Always check current Microsoft documentation and licensing before implementing a solution in a production environment. All organisations, business scenarios and data used in DToD Labs are fictional. Learners should not use confidential employer, customer or personal information when following DToD Labs exercises.

© 2026 DToD Labs — A DosToDigital Project