Customizable end user agreement (EULA) during Windows enrollment
Author: melpikeCreated Jul 29, 2026Updated Sep 23, 2026
LabelsstoryP2~product-maturity#g-power-to-pccustomer-cliffordcustomer-universitas~windows-workstation
Goal
| User story |
|---|
| As an IT admin, |
| I want to manage end user agreements for macOS and Windows in one place |
| so that I can customize the end user experience during enrollment for each platform. |
Changes
Product
- UI changes: Figma
- CLI (fleetctl) usage changes: No changes
- YAML changes: https://github.com/fleetdm/fleet/pull/51962
- REST API changes: https://github.com/fleetdm/fleet/pull/51964
- Fleet's agent (fleetd) changes: No changes
- Fleet server configuration changes: No changes
- Exposed, public API endpoint changes: No changes
- fleetdm.com changes: No changes
- GitOps mode UI changes: Both tabs display their content in read-only mode — the macOS EULA PDF and the Windows terms and conditions markdown.
- GitOps generation changes: Update generateEULA() to also generate the Windows terms and conditions file (markdown) if one exists.
- Activity changes:
- New types: "Added an end user agreement", "Edited an end user agreement", and "Deleted an end user agreement"
- https://github.com/fleetdm/fleet/pull/53061
- Permissions changes: global admin (read/write/list) and global gitops (read/write) only — no team-level access.
- Changes to paid features or tiers: Fleet Premium
- My device and fleetdm.com/better changes: No changes
- Usage statistics: No changes
- Other reference documentation changes: https://github.com/fleetdm/fleet/pull/51966
- First draft of test plan added
- Once shipped, requester has been notified
- Once shipped, dogfooding issue has been filed
Engineering
- Test plan is finalized
- Contributor API changes: TODO
- Feature guide changes: TODO
- Database schema migrations: TODO
- Load testing: TODO
- Pre-QA load test: TODO
- Load testing/osquery-perf improvements: TODO
ℹ️ Please read this issue carefully and understand it. Pay special attention to UI wireframes, especially "dev notes".
Risk assessment
- Risk level: Medium
- Risk description: New Windows feature with a default-page fallback, but it touches the shipped macOS EULA (moved into a tabbed UI,
generateEULA()changed), so macOS EULA upload and GitOps could regress. On Windows, watch for a bad file or broken render blocking Entra/Autopilot enrollment and for unsanitized markdown on the terms page.
Test plan
Make sure to go through [the list](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/guides/ui/design-qa-considerations.md) and consider all events that might be related to this story, so we catch edge cases earlier.
Core flow
Admin
- Settings > Integrations > MDM > End user agreement shows macOS and Windows tabs; section renamed from "EULA"
- macOS tab: upload PDF, view, delete — works as before
- Windows tab: upload
.md, view (rendered as expected), delete - Upload, replace, and delete each create the correct activity ("Added / Edited / Deleted an end user agreement") with the platform identifiable
- Windows API endpoints (per #51964) upload/get/delete work and match docs
End user (Windows)
- Custom terms uploaded → Autopilot/OOBE Entra enrollment shows rendered terms; accepting continues enrollment and host appears in Fleet
- Same via Settings > Access work or school (Entra join on an existing device)
- Declining terms stops enrollment; host doesn't enroll
- No custom terms → Fleet's default terms page shown, enrollment succeeds
- Delete custom terms → next enrollment shows default page again
- Replace terms → next enrollment shows new content (no caching of old)
End user (macOS)
- ABM/ADE host still shows PDF EULA in Setup Assistant and enrolls after accepting
Edge cases
- Upload non-
.mdfile (PDF,.txt,.exerenamed.md) on Windows tab → rejected with clear error; PDF still required on macOS tab - Empty
.md, and very large.md(over size limit) → clear error, no partial save - Markdown with
<script>,<iframe>,javascript:links, inline HTML → sanitized in admin preview and on enrollment page - Rich markdown (headings, lists, tables, links, images, emoji/non-ASCII, very long line/filename) renders readable on the OOBE page
- Links in terms on the OOBE page don't trap the user or break enrollment
- macOS and Windows agreements are independent — deleting/replacing one doesn't affect the other
- Windows host enrolled via fleetd auto-enroll (non-Entra) doesn't get the terms page
- Changing terms doesn't affect already-enrolled Windows hosts (no re-prompt)
- Windows MDM off → Windows tab state/messaging is correct; turning MDM back on keeps uploaded terms
- Buttons disabled while uploading/deleting; double-click upload doesn't create duplicate activities
- Tab state reflected in URL (if applicable) and keyboard navigation between tabs works
- Wiped Windows host re-enrolling via Autopilot sees current terms
UI
- Verify all UI changes in the Figma are implemented (tabs, upload/view/delete, renamed labels)
- Verify empty (no file), loading, and error states on both tabs
API
- Test all new/modified endpoints in #51964, including invalid file type, missing file, and delete when none exists
- Verify new endpoints appear in the API-only user endpoint picker with name/method/path matching docs
GitOps (generate + run)
- Upload both agreements in UI, run
fleetctl generate-gitops→ output includesend_user_license_agreement(PDF) andwindows_eula(markdown file) - No Windows terms uploaded → generate-gitops omits Windows file without error
- Set/change
windows_eulapath and runfleetctl gitops→ Fleet applies new terms; activity logged - Remove
windows_eulakey and runfleetctl gitops→ Windows terms deleted, default page used - Invalid path or non-markdown file in
windows_eula→ gitops fails with clear error - GitOps mode on → both tabs read-only with GitOps tooltip; upload/delete hidden or disabled
Permissions
- Global admin: read/write/list both tabs; global GitOps: write via API/gitops
- Global maintainer, observer, observer+ → no access (UI and API 403)
- Fleet-level roles (all) → no access (UI and API 403)
Premium gating (if this is a premium-only feature)
- Fleet Free: Windows tab hidden/disabled with premium messaging
- Fleet Free: Windows endpoints return the expected premium error
Upgrade / data migration
- Upgrade server with an existing macOS EULA from prior release → PDF shows on macOS tab, still served in Setup Assistant, no Windows terms by default
- Existing GitOps repo with only
end_user_license_agreementstill applies cleanly after upgrade
Feature in isolation (MDM / platform independence)
- Both Apple and Windows MDM on: both agreements work independently
- Windows-only (Apple MDM off): Windows tab fully usable; macOS tab state/messaging correct
- Apple-only (Windows MDM off): macOS EULA unaffected
Confirmation
- Engineer: Added comment to user story confirming successful completion of test plan (include any special setup, test data, or configuration used during development/testing if applicable).
- QA: Added comment to user story confirming successful completion of test plan.
- QA: Determined whether this story needs Playwright automation.
- Needs automation: Yes / No
- If yes, filed a follow-up issue in the :help-qa project with status "Needs automation":
Source: fleetdm/fleet