Hướng Dẫn SharePoint Online Version Control: Quản Lý Phiên Bản Tài Liệu Toàn Diện
Hình 1: Tổng quan hệ thống version control trong SharePoint Online — từ major/minor versions đến retention policies.
Version control trong SharePoint Online = tự động lưu mọi thay đổi, cho phép restore bất kỳ phiên bản nào. Không cần "Final_v2_FINAL_thật_sự_final.docx" — SharePoint giữ 1 file duy nhất với full version history. Admin cấu hình versioning qua SharePoint admin center, quản lý retention policies qua Microsoft Purview, và kiểm soát storage qua Microsoft 365 admin center.
Bài viết hướng dẫn chi tiết: major/minor versions, check-in/check-out, version limits, và best practices cho doanh nghiệp Việt Nam.
TL;DR: SharePoint Online version control lưu mọi thay đổi tự động — restore bất kỳ version nào trong seconds. Set max 100–200 major versions (thay default 500), enable auto-trim tiết kiệm 30–50% storage. Dùng co-authoring cho daily collaboration, check-out chỉ cho critical documents. Microsoft Purview retention policies đảm bảo compliance — versions không bị xóa trong retention period.
🚀 PUPAM triển khai SharePoint version control & document management cho doanh nghiệp Việt Nam — cấu hình versioning, retention policies, approval workflows, và storage optimization trong 1 tuần. Liên hệ tư vấn miễn phí
Major vs Minor Versions
| Tính Năng | Major Versions (1.0, 2.0, 3.0) | Minor Versions (1.1, 1.2, 1.3) |
|---|---|---|
| Khi nào tạo | Publish/Check-in | Mỗi lần save |
| Ai xem được | Visitors + Members + Owners | Members + Owners only |
| Published? | ✅ Yes | ❌ No (draft) |
| Default ON? | ✅ (mọi library) | ❌ (phải enable riêng) |
| Auto-create | Save as Major | Auto-save (co-authoring) |
| Max versions | 500 (default) | 500 (default) |
| Use case | Official releases, approved docs | Work-in-progress, drafts |
Version Numbering
Major only (default): 1.0 → 2.0 → 3.0 → 4.0 — mỗi save = new major version.
Major + Minor enabled: 0.1 → 0.2 → 0.3 → 1.0 (publish) → 1.1 → 1.2 → 2.0 (publish)
- Minor (0.x): drafts, chỉ editors thấy
- Major (x.0): published, everyone thấy
Workflow Ví Dụ
| Version | Hành Động | Trạng Thái |
|---|---|---|
| 0.1 | Tạo draft đầu tiên | Draft |
| 0.2 | Edit thêm content | Draft |
| 0.3 | Ready for review | Draft |
| 1.0 | Manager approve → Publish | Published |
| 1.1 | Minor fixes (typo) | Draft |
| 1.2 | Update số liệu | Draft |
| 2.0 | Major revision → Re-publish | Published |
Enable Minor Versions
- Library settings → Versioning settings
- "Create major and minor (draft) versions" = Yes
- "Who should see draft items": Only users who can edit
Version History
Xem Version History
- Right-click file → Version history
- Hoặc: ⋯ (ellipsis) → Version history
Version history panel hiển thị:
| Cột | Nội Dung |
|---|---|
| Version number | 1.0, 2.0, etc. |
| Modified date/time | Thời gian chỉnh sửa |
| Modified by | Tên user |
| Size | File size tại version đó |
| Comments | Check-in comments |
Actions per version: View (open read-only copy) · Restore (replace current) · Delete (remove specific version)
Compare Versions
Word documents:
- Version history → hover over version
- Click arrow → "Compare with current" hoặc "Compare with previous"
- Opens Word Compare → track changes view
- Xem: additions (green), deletions (red), moves
Non-Word files: view mỗi version side-by-side (manual compare) — Excel compare cells, PowerPoint compare slides.
Power Automate integration: Trigger "When file is modified" → Action: Get version history → compare → notify team khi someone changes critical doc.
Check-In / Check-Out
| Feature | Check-Out | Check-In |
|---|---|---|
| What happens | File locked for editing | File unlocked, version created |
| Others can edit? | ❌ No (read-only for others) | ✅ Yes |
| When to use | Critical documents, prevent conflicts | After editing is done |
| Co-authoring? | ❌ Disabled during checkout | ✅ Enabled after checkin |
| Required? | Optional (library setting) | Yes (if checked out) |
| Override? | Site Owner can force check-in | N/A |
Check-Out Workflow
Enable per library: Library settings → Versioning settings → "Require documents to be checked out" = Yes
Quy trình:
- User clicks ⋯ → Check Out — file icon hiện green arrow (checked out)
- Other users: read-only + thấy "Checked out to: Nguyễn Văn A"
- User edits → saves
- User clicks ⋯ → Check In → nhập comment: "Updated Q3 revenue figures"
- Chọn: Major version (2.0) hoặc Minor version (1.1)
- File unlocked → available cho everyone
Discard & Override
- Discard check-out: ⋯ → Discard Check Out → reverts về version trước check-out — tất cả changes bị MẤT
- Admin override: nếu user quên check in / đi vắng → Site Owner: ⋯ → Check In (override)
- PowerShell:
Set-PnPFileCheckedIn -Url "/sites/docs/file.docx"
Version Limits & Storage Impact
| Setting | Default | Recommended | Impact |
|---|---|---|---|
| Max major versions | 500 | 100–200 | Fewer = less storage |
| Max minor versions | 500 | 10–20 | Drafts hiếm khi cần 500 versions |
| Version trimming | Auto (new 2024) | Enable | Auto-delete old versions |
| Recycle bin retention | 93 days | Default | Deleted versions recoverable |
Storage Impact
Ví dụ: 10MB Word document, 500 versions
| Tính Toán | Kết Quả |
|---|---|
| Worst case (no incremental) | 10MB × 500 = 5,000 MB = 5 GB |
| Actual (shredded storage) | 10MB + (500 × 0.2MB) = ~110 MB |
| Scale: 1,000 docs × 100 versions × 0.2MB | ~20 GB chỉ cho version history |
SharePoint dùng shredded storage — chỉ lưu changed "shreds" (64KB blocks), không duplicate toàn bộ file.
Khuyến Nghị Tối Ưu Storage
- Set max major versions: 100 (không cần default 500)
- Set max minor versions: 10
- Enable auto-trim (new feature 2024)
- Monitor: SharePoint admin center → Active sites → Storage used
Auto Version History Limits (NEW 2024)
- SharePoint admin center → Settings → Version history limits
- "Automatic" mode: intelligently trims old versions — giữ nhiều versions gần đây, ít versions cũ
- Expected: 30–50% storage savings trên version-heavy libraries
💡 Cần tối ưu storage SharePoint cho tổ chức? PUPAM hỗ trợ cấu hình version limits, auto-trim, retention policies — tiết kiệm 30–50% storage trong tuần đầu. Tìm hiểu thêm
Content Approval + Versioning
Content Approval = workflow layer trên versioning — kiểm soát ai được publish nội dung.
Enable: Library settings → Versioning settings → "Require content approval for submitted items" = Yes
Approval Statuses
| Status | Mô Tả | Version Type |
|---|---|---|
| Draft | Author đang working | Minor version |
| Pending | Đã submit for approval | Minor version |
| Approved | Published → everyone thấy | Major version |
| Rejected | Sent back with comments | Minor version |
Quy Trình
- Author saves draft (version 0.1, 0.2, 0.3)
- Author clicks "Submit for approval"
- Approver receives notification
- Approver: Approve → version trở thành 1.0 (published) — hoặc Reject → comments → back to author
Kết Hợp Power Automate
- Trigger: "When item requires approval"
- Action: Start approval → notify trong Teams
- Approver: approve trực tiếp trong Teams/email
- Auto-update status → publish major version
- Audit trail trong Microsoft Purview
Retention Policies cho Versions
Microsoft Purview retention policies kiểm soát vòng đời versions — override manual deletion.
Các Scenario Phổ Biến
| Scenario | Cấu Hình | Kết Quả |
|---|---|---|
| Compliance 7 năm | Purview → Retention policies → Retain 7 years → then delete | Mọi versions giữ 7 năm, kể cả user xóa |
| Auto-delete sau 2 năm | Purview → Retain 2 years → then auto-delete | Giảm storage costs tự động |
| Legal hold | Purview → eDiscovery → Create hold | KHÔNG ai xóa được — litigation, regulatory investigation |
Key Points
- Retention policies override manual deletion — users nghĩ đã xóa nhưng Purview vẫn giữ
- Preservation Hold Library: hidden library per site — admin only access, users không thấy
- Microsoft Entra ID controls ai có quyền create/edit retention policies
- Storage impact: Preservation Hold Library counts toward site storage quota
Co-Authoring & AutoSave
Requirements
- File stored trong SharePoint hoặc OneDrive
- Open trong Office for web hoặc Office desktop (M365 Apps)
- NOT checked out (check-out disables co-authoring)
- Office 2016: basic support only — recommend M365 Apps
Cách Hoạt Động
- Multiple users open same file simultaneously → thấy colored cursors (ai đang edit ở đâu)
- Changes sync real-time (web) hoặc mỗi vài giây (desktop)
- AutoSave = ON — saves mỗi vài giây tự động
Version Creation với AutoSave
AutoSave KHÔNG tạo 1 version per save. SharePoint groups saves thành edit sessions:
| Trigger | Tạo New Version |
|---|---|
| User đóng file (end of session) | ✅ Major version |
| Mỗi ~30 phút continuous editing | ✅ Major version |
| Manual "Save a copy" | ✅ Major version |
| AutoSave mỗi vài giây | ❌ Gộp vào session |
Kết quả: 2 giờ editing ≈ 4–5 versions, không phải 200 versions.
Conflict Resolution
- Real-time co-authoring: no conflicts (live merge)
- Offline editing: "Conflicting changes" notification on sync
- OneDrive sync hiện conflict files: "filename (conflict).docx" → user reviews và merges manually
Checklist Version Control Setup
- Set max major versions 100–200 + max minor versions 10–20 per library
- Enable auto version history limits (new 2024 feature) tại tenant level
- Enable require check-out cho critical libraries (contracts, financial reports)
- Enable content approval + Power Automate approval workflow cho policy libraries
- Configure Microsoft Purview retention policies (compliance hold 7 năm)
- Monitor storage usage: SharePoint admin center → Active sites → Storage breakdown
- Train users: version history, restore, compare versions, check-in comments
- Document versioning policy rõ ràng (khi nào major vs minor, naming conventions)
FAQ
Version history có giới hạn bao nhiêu versions?
Default 500 major versions — configurable từ 1 đến 50,000. SharePoint admin center → Settings → Default version history limits (tenant-wide). Per-library: Library settings → Versioning settings → max versions. Recommendation: 100–200 major versions cho hầu hết scenarios. New 2024 feature: "Automatic" mode — SharePoint tự trim versions thông minh (giữ nhiều versions gần đây, ít versions cũ). Admin monitor storage impact qua SharePoint admin center → Active sites. Microsoft Purview retention policies có thể override version deletion (compliance hold).
Restore version cũ có mất dữ liệu không?
Không mất — restore tạo thêm 1 version mới. Khi restore version 3.0 (trong khi current là version 8.0): SharePoint copy nội dung version 3.0 → tạo version 9.0. Version 8.0 vẫn còn trong history. Tất cả versions 1.0–8.0 preserved. User có thể restore lại version 8.0 nếu muốn. Restore process: Version history → hover over version → arrow → Restore → Confirm. Bulk restore (nhiều files): PowerShell PnP Restore-PnPFileVersion. Admin audit: Microsoft Purview audit log ghi nhận mọi restore event.
AutoSave tạo quá nhiều versions — làm sao control?
SharePoint batches AutoSave thành edit sessions — không 1 save = 1 version. AutoSave saves mỗi vài giây, nhưng SharePoint groups thành versions theo session logic: new version khi user đóng file, new version mỗi ~30 phút continuous editing, co-authoring sessions gộp changes. Kết quả: 2 giờ editing ≈ 4–5 versions, không phải 200 versions. Nếu vẫn quá nhiều: giảm max versions (100 thay 500), enable auto-trim (new 2024 feature). Admin monitor: SharePoint admin center → Active sites → Storage breakdown.
Check-out có cần thiết khi đã có co-authoring?
Không cần cho hầu hết documents — chỉ dùng cho critical files. Co-authoring (real-time edit cùng lúc) hiệu quả hơn check-out cho daily collaboration. Check-out chỉ cần khi: legal documents (cần 1 người chỉnh sửa tại 1 thời điểm), financial reports (tránh conflicting edits), regulated documents (audit trail strict). Best practice: disable check-out cho document libraries thông thường (project files, meeting notes), enable cho contract/policy/financial libraries. Microsoft Purview sensitivity labels có thể auto-require check-out cho labeled documents.
Version history và retention policy tương tác thế nào?
Retention policy wins — override manual deletion. Nếu Microsoft Purview retention policy set "Retain 7 years" cho site → user delete version → version moved to hidden Preservation Hold Library (not actually deleted). Admin và user không thể xóa versions trong retention period. Sau 7 năm → auto-delete. Legal hold (eDiscovery): infinite retention, không ai delete được. Complex scenario: retention policy 3 years + versioning limit 100 versions → SharePoint keeps max 100 visible, nhưng Purview giữ tất cả trong hidden library đủ 3 years.
Minor versions có cần thiết cho mọi library không?
Không — chỉ enable cho libraries cần publish control. Minor versions (0.1, 0.2...) tạo draft layer — chỉ editors thấy drafts, visitors chỉ thấy published major versions. Cần thiết khi: policy/procedure libraries (drafts cần approval trước khi publish), marketing content (review cycle trước khi public), regulated documents (audit trail cho draft → publish process). Không cần cho: project files, meeting notes, daily collaboration docs — major-only đủ dùng. Enable: Library settings → Versioning → "Create major and minor versions". Storage impact: minor versions cũng tính vào storage quota — set max 10–20 minor versions.
Nguồn Tham Khảo
- How versioning works in lists and libraries — Microsoft Learn
- Version history for a list or library — Microsoft Support
- SharePoint version history limits — Microsoft Learn
- Retention policies for SharePoint — Microsoft Purview
- Co-authoring in Office — Microsoft Support
- Check out files — SharePoint documentation
- Auto version history management — Microsoft 365 blog
Hành Động Ngay Hôm Nay
- Kiểm tra ngay versioning settings tại SharePoint admin center → Settings → Version history limits — đặt max 100–200 major versions + enable auto-trim
- Cấu hình retention policies trong Microsoft Purview → Data lifecycle management — set "Retain 7 years" cho compliance sites, "Retain 2 years" cho general sites
- Enable content approval cho critical libraries (policies, contracts) — kết hợp Power Automate approval workflow notify qua Teams
Bài Liên Quan Nên Đọc
- SharePoint Online Document Libraries Metadata
- SharePoint Online Sharing External Internal
- SharePoint Online Complete Guide
- OneDrive Office Integration Co-Authoring
- Power Automate SharePoint Document Automation
- Microsoft 365 Security Best Practices
Kết Luận
| Thành Phần | Khuyến Nghị | Công Cụ |
|---|---|---|
| Version Limits | Max 100–200 major, 10–20 minor, enable auto-trim | SharePoint admin center |
| Document Control | Co-authoring cho daily work, check-out cho critical docs | Library settings |
| Compliance | Retention policies 7 năm, content approval + Power Automate | Microsoft Purview |
Version control trong SharePoint Online = insurance cho documents. Mọi thay đổi tự động tracked, restore bất kỳ version nào trong seconds. Set max 100–200 major versions, enable auto-trim tiết kiệm 30–50% storage. Check-out chỉ cho critical documents — hầu hết dùng co-authoring hiệu quả hơn. Microsoft Purview retention policies đảm bảo compliance — versions không bị xóa trong retention period.
📧 Cần hỗ trợ SharePoint version control & document management? PUPAM tư vấn và triển khai versioning optimization, retention policies, approval workflows cho doanh nghiệp. Liên hệ hello@pupam.com