Bulk user operations: create/update/delete users in bulk via CSV upload in Entra admin center, or via PowerShell (New-MgUser) and Microsoft Graph API (POST /users). Ideal for provisioning >50 users at once during organizational onboarding.
Dynamic groups: membership maintained automatically by attribute-based rules (e.g., user.department -eq "Finance" -and user.jobTitle -contains "Manager"). Two types: Security (for RBAC/CA) and Microsoft 365 (for Teams/SharePoint collaboration). Processing delay up to 24h after attribute change.
B2B Collaboration vs B2B Direct Connect: B2B Collaboration — external user exists as a Guest object in your tenant (manageable, can be CA-scoped, Access Review eligible). B2B Direct Connect — no guest object created; the external organization's users access specific Teams Shared Channels directly using their own IdP. Use B2B Connect for Teams-only cross-org collaboration without full guest provisioning overhead.
Guest lifecycle management: sponsor-based invitations, Access Reviews for regular revalidation, expiry policies for auto-cleanup of inactive guests. Use Entitlement Management Access Packages for structured external onboarding with automatic expiry.
Bulk operations: onboard 200 nhân viên mới sau M&A → upload file CSV với fields: displayName, userPrincipalName, password, department. Dùng MS Graph API để tích hợp với HR system (Workday) — mỗi khi tạo record mới trong HR → tự tạo Entra user. Tránh manual entry từng người.
Dynamic groups: thay vì admin thêm/xóa người thủ công → rule tự động: user.department = "Finance" → tự join nhóm Finance-Apps → tự nhận quyền truy cập phần mềm kế toán. Khi nhân viên chuyển sang phòng khác → attribute thay đổi → tự kick ra khỏi nhóm (không cần IT làm gì). Lưu ý: delay tối đa 24h.
B2B Collaboration vs B2B Direct Connect: Collaboration — tạo guest account trong tenant bạn → guest chịu CA policy của bạn, có thể assign RBAC, track qua Access Review. Direct Connect — không tạo guest object, chỉ cho vào Teams Shared Channel → nhẹ hơn nhưng kém kiểm soát hơn. Chọn Collaboration cho partner quan trọng dài hạn; Direct Connect cho team project ngắn hạn.
Guest lifecycle: onboard vendor → Access Package tự cấp quyền → expire 90 ngày → Access Review 30 ngày trước khi hết hạn → vendor tự renew hoặc sponsor confirm. IT không cần nhớ dọn guest accounts thủ công.
Graph API integration với HR: PowerAutomate flow kích hoạt khi Workday tạo employee record → POST /users (Entra) → assign license M365 → thêm vào dynamic group theo department → send welcome email. Toàn bộ onboarding chạy tự động trong 5 phút. Audit: xem Entra ID → Audit logs → Filter "Add user" để verify mọi user creation đều có nguồn gốc rõ ràng.
Entra Connect vs Cloud Sync: Connect Sync (legacy agent on Windows Server — full feature set, supports complex topologies, custom attribute mapping, Exchange hybrid writeback). Cloud Sync (lightweight provisioning agent — no Windows Server management, auto-updates by Microsoft, better for multi-forest scenarios, but fewer advanced features).
Authentication methods: Password Hash Sync (PHS — hash of on-prem password synced to cloud; cloud authentication; supports leaked credential detection; fallback if on-prem is down — recommended for most orgs). Pass-through Authentication (PTA — credential validated against on-prem DC in real-time; no hash stored in cloud; requires always-on on-prem agent). Federation (AD FS — all authentication redirected to on-prem ADFS; most complex, highest cost, supports smartcard/third-party MFA; avoid unless mandatory).
Seamless SSO: Kerberos-based SSO for domain-joined Windows PCs. When user signs in to Windows via AD → Kerberos ticket obtained → Entra ID accepts ticket → no second prompt for M365 apps. Works with both PHS and PTA.
Writeback features: Password Writeback (user resets password in cloud/SSPR → synced back to on-prem AD — required for SSPR to work in hybrid). Device Writeback (Hybrid Entra Join registers device in both AD and Entra ID). Group Writeback (M365 groups synced to AD as Distribution Groups for on-prem Exchange).
Entra Connect vs Cloud Sync: Tổ chức đang dùng ADFS muốn migrate về Managed Auth → dùng Entra Connect Sync (vì cần custom attribute mapping + Exchange hybrid). Tổ chức có 5 forest AD phân tán (sau nhiều vụ mua lại) → Cloud Sync tốt hơn (deploy nhiều lightweight agent, không cần 1 server tập trung). Cả hai đều sync user/group lên Entra ID.
PHS vs PTA vs Federation: PHS = khuyến nghị mặc định (offline resilience — nếu on-prem down vẫn login được cloud; hỗ trợ Identity Protection leaked credentials). PTA = khi policy bắt buộc password không được rời on-prem. Federation = khi cần smartcard auth hoặc tích hợp third-party MFA (RSA, Duo) — phức tạp nhất, tránh nếu không bắt buộc.
Seamless SSO: nhân viên ngồi văn phòng → đăng nhập Windows domain → tự vào Teams/Outlook không cần nhập thêm. Dùng Kerberos ticket — transparent hoàn toàn. Quan trọng cho UX: user không bị hỏi password nhiều lần trong ngày.
Writeback: SSPR không hoạt động trong hybrid nếu không bật Password Writeback. Khi user reset cloud password → phải ghi ngược về on-prem AD ngay lập tức (không thể để 2 password khác nhau). Hybrid Entra Join: device vừa trong AD (Group Policy) vừa trong Entra ID (Conditional Access + Intune).
Migration path ADFS → PHS: (1) Bật PHS song song với ADFS (staging). (2) Test login với Seamless SSO. (3) Chuyển domain từ Federated → Managed (Convert-MsolDomainToStandard). (4) Decommission ADFS servers. Lợi ích: tiết kiệm 4 Windows Server licenses, giảm complexity, Identity Protection hoạt động đầy đủ với PHS. Rủi ro chính: ứng dụng cũ đang dùng WS-Federation endpoint của ADFS → cần migrate trước.
Named Locations: define trusted IP ranges (office networks, VPN egress IPs) or countries as trusted locations. Use in CA policies: allow passwordless for trusted IPs, require stronger MFA from untrusted/unknown locations. Mark as "Compliant Network" to require Compliant Network Check in ZTNA scenarios.
Device-based CA: Require Hybrid Entra Joined device (domain-joined + Entra registered — corporate-managed, Group Policy applied). Require Intune-compliant device (must have encryption, min OS version, antivirus, password policy via Intune compliance policy). Require approved client app (Block unapproved IMAP/POP apps — enforce Outlook only for Exchange). App protection policy required (MAM — controls copy-paste, screenshots on BYOD).
Authentication Strengths: define a named set of accepted MFA methods for specific CA policies. Example: "Phishing-resistant MFA" strength = only FIDO2 + Windows Hello for Business + certificate-based auth → apply to all admin roles. Weaker methods (SMS) are then blocked for admins even if registered.
Continuous Access Evaluation (CAE): Entra ID pushes revocation events in near-real-time to CAE-capable apps (Teams, SharePoint, Exchange Online). If user is disabled or IP changes mid-session, session is killed within minutes (not at next token refresh which could be up to 1 hour). Critical for breach response.
Named Locations: định nghĩa "Văn phòng Hà Nội" = 203.162.x.x/24, "Văn phòng HCM" = 118.69.x.x/24 → CA policy: nếu từ Named Location tin cậy + device compliant → không cần MFA (smooth UX). Nếu từ nước ngoài không xác định → block hoặc yêu cầu FIDO2. Cập nhật danh sách khi IP thay đổi (ví dụ chuyển ISP).
Device-based CA: BYOD nhân viên dùng điện thoại cá nhân → chỉ cho phép qua Outlook app (approved client) với App Protection Policy (không copy-paste dữ liệu công ty sang app cá nhân). Corporate laptop → require Intune compliant (BitLocker on, Win11, Defender updated). Không cho máy cá nhân truy cập SharePoint từ browser — chỉ từ managed device.
Authentication Strengths: role Global Admin, Security Admin, Privileged Role Admin → CA policy "Require phishing-resistant MFA" → chỉ chấp nhận FIDO2 hoặc Windows Hello. Nếu admin chỉ có Authenticator app → bị chặn → phải đăng ký FIDO2 key trước. Ngăn attacker dùng phishing OTP để vào tài khoản admin ngay cả khi biết password.
CAE: IT disable tài khoản nhân viên nghỉ lúc 5pm → CAE push revocation → Teams/Outlook bị kick ra trong 1-2 phút (không phải chờ 1 tiếng token expire). Quan trọng cho incident response: phát hiện account bị xâm phạm → disable ngay → CAE đảm bảo session hiện tại cũng bị kill.
Zero-Trust CA baseline (5 policies tối thiểu): (1) Require MFA all users. (2) Require phishing-resistant MFA all admins. (3) Block legacy auth. (4) Require compliant device for sensitive apps (SharePoint Finance). (5) Block access from high-risk countries. Thứ tự bật: Report-only 1 tuần → review sign-in logs → Enable. Luôn exclude Emergency Access accounts (break-glass) có format [email protected] khỏi mọi policy.
Role settings per role: configure separately for each Entra role: max activation duration (e.g., Global Admin = 2h, Security Reader = 8h), require MFA on activation, require justification (mandatory text explaining why), require approval (manager or specific approver group must approve within 24h or request expires), require ticketing info (ServiceNow ticket number).
PIM for Groups: make group membership itself just-in-time, not just role assignments. User activates group membership → gets access to all resources tied to that group (RBAC, CA, app roles) → expires. More flexible than role-based PIM for complex access scenarios.
PIM Alerts: built-in alerts for dangerous patterns: "Roles don't require MFA for activation", "Too many Global Admins", "Roles are being activated too frequently", "Potential stale privileged identities". Review these regularly in PIM → Alerts section.
Access Reviews for PIM: periodic review of who has Eligible or Permanent assignments. If reviewer doesn't respond → auto-remove assignment. Schedule quarterly for high-impact roles (Global Admin, Privileged Role Admin). Removes forgotten permanent assignments that accumulate over time.
Role settings chi tiết: Global Admin = kích hoạt tối đa 2h, bắt buộc MFA + justification + approval từ CISO trong 30 phút. Security Reader = kích hoạt tối đa 8h, chỉ cần MFA + justification (không cần approval vì ít rủi ro). Customize từng role theo risk level — không dùng cùng settings cho tất cả.
PIM for Groups: ví dụ nhóm "SQL-DBAdmins" có quyền sysadmin trên production SQL → dùng PIM for Groups thay vì gán thường xuyên → DBA kích hoạt membership khi cần maintenance 4h → tự hết hạn. Flexible hơn role PIM vì 1 group có thể có RBAC + CA + app roles cùng lúc.
PIM Alerts: review hàng tuần → "5 Global Admins được kích hoạt trong 1h" → điều tra ngay (có thể là lateral movement). "Global Admin role không yêu cầu MFA" → fix ngay. Đây là early warning system cho privilege abuse.
Access Reviews cho PIM: quarterly review Global Admin assignments → reviewer = CISO. Ai không được confirm → assignment bị remove. Tránh "privilege creep" — admin được cấp Global Admin 2 năm trước cho dự án cũ, dự án xong nhưng không ai thu hồi quyền.
PIM workflow incident response: Security incident → Sentinel alert → SOC cần Global Admin để disable compromised accounts → request PIM activation → auto-approved nếu incident severity=High (pre-configured) → active 2h → thực hiện containment → PIM deactivate. Toàn bộ có audit trail: who requested, what time, what actions taken during activation window. Phục vụ forensics sau incident.
App Registration vs Enterprise App: App Registration = the identity of your custom-built app (defines redirect URIs, API permissions requested, client secrets/certificates). Enterprise App / Service Principal = the instance of an app in your tenant (your app OR a third-party SaaS like Salesforce, ServiceNow). Consent granted at the Enterprise App level.
OAuth 2.0 permission types: Delegated permissions (app acts on behalf of signed-in user — limited to what user can do; user or admin consents). Application permissions (app acts without user — daemon/background service; admin consent only). Principle: request only the scopes needed — never request full Mail.ReadWrite when Mail.Read suffices.
Consent framework: User consent (by default, users can consent to low-risk delegated scopes). Admin consent (required for high-risk or application permissions — admin consents on behalf of entire org). Restrict user consent via Entra admin center → Enterprise Apps → Consent settings → allow only verified publishers or disable user consent entirely → force admin consent workflow.
SAML SSO configuration: for legacy SaaS apps (Salesforce, SAP). Set Entity ID, Reply URL (ACS URL), attributes (NameID claim = user.mail or user.userprincipalname). Map additional attributes (department, employee ID) as SAML claims. Use Entra App Gallery for pre-configured SAML templates.
App Registration vs Enterprise App: bạn viết app nội bộ → tạo App Registration → lấy Client ID + Client Secret → dùng trong code để gọi Graph API. ServiceNow (SaaS bên ngoài) → admin thêm từ Entra Gallery → tạo Enterprise App (Service Principal) → cấu hình SAML SSO → nhân viên login ServiceNow qua Entra ID. App Registration là "blueprint", Enterprise App là "instance" chạy thật trong tenant.
OAuth scopes: app mobile muốn đọc email → request scope "Mail.Read" (delegated) → user đồng ý → app chỉ đọc được email của user đó. Background service chạy không có user → request "Mail.Read" (application) → admin consent → đọc được toàn bộ mailbox org. Nguyên tắc: luôn dùng delegated khi có user interaction; application scope chỉ khi cần daemonprocess.
Consent framework: hacker tạo app độc hại "HelpDeskTool" → request Mail.ReadWrite (application) → user thường không có quyền consent → phải qua admin consent workflow → CISO/admin review → từ chối. Disable user consent hoàn toàn cho org → admin là người duy nhất cấp quyền cho app mới → ngăn OAuth phishing attack.
SAML SSO: Salesforce đang có 500 user login riêng biệt → tích hợp SAML SSO với Entra ID → nhân viên SSO từ M365 portal → vào Salesforce không cần đăng nhập thêm. Cấu hình: Entity ID = https://salesforce.com/org-id, ACS URL = https://login.salesforce.com/saml-acs, NameID = user.mail.
App inventory audit: Entra → Enterprise Apps → Permissions → filter "High risk" → review apps có Mail.ReadWrite or Directory.ReadWrite.All permissions. Revoke nếu không nhận ra app. Implement App Governance (Defender for Cloud Apps): track OAuth app permissions, detect apps requesting abnormal permissions, alert khi app có số user tăng đột biến. Ngăn supply chain attack qua OAuth app compromise.
Catalogs and Access Packages: Catalog = container for resources (groups, apps, SharePoint sites, roles). Access Package = a bundle of resources within a catalog, with policies defining who can request, approval workflow, and expiry. Separate catalogs for different business units (HR, Finance, Engineering) with delegated catalog management to each team.
Access Package policies: Requestors (all members, specific groups, external users from specific orgs). Approval (single or multi-stage — manager first → team lead second). Expiry (fixed date, N days after assignment, never). Access Reviews (enable within package — periodic review of active assignments). Self-extension allowed (let users renew before expiry without going through full process).
Access Reviews — advanced scoping: scope to inactive users only (not logged in for 90+ days), or service principals with unused permissions, or Entra role assignments. Reviewer types: manager (dynamic — each user reviewed by their own manager), owner (resource owner), specific people (dedicated reviewers). Result options: auto-apply, require reviewer decision, or remove access if no response.
Lifecycle Workflows (Entra ID Governance): automate identity lifecycle: Joiner (send welcome email, enable account, generate temp TAP, add to groups on day 1 HR trigger). Mover (update groups when user changes department, update manager attribute). Leaver (disable account, revoke sessions, remove group memberships, block sign-in on last day, delete after 30 days).
Catalogs và Access Packages: Finance team tự quản lý Catalog "Finance-Resources" — CISO không cần can thiệp từng request. Finance Lead tạo Access Package "Finance-ReadOnly" (SharePoint Finance + Power BI Viewer role) → nhân viên auditor bên ngoài self-request → Finance Manager approve → expire 60 ngày. Đây là mô hình self-service governance.
Policy detail: Access Package "New Employee Onboarding" — requestors: HR group → approval: IT Lead (single stage) → expiry: 365 ngày → Access Review: 6 tháng → allow self-extend 30 ngày trước khi expire. HR tự quản lý mà không cần IT làm từng bước. Kết quả: IT giảm 70% ticket "cấp quyền mới".
Access Reviews nâng cao: quarterly review tài khoản Service Principal (app identity) — check xem app nào có permissions nhưng không có API call trong 90 ngày → flag để revoke. Review inactive guests (không đăng nhập 30+ ngày) → auto-remove. Tránh ghost accounts tích lũy trong tenant.
Lifecycle Workflows: nhân viên nghỉ việc → HR cập nhật last working day → Entra Lifecycle Workflow trigger: D-3: manager nhận notification, D0 (ngày cuối): disable account + revoke sessions + remove sensitive groups + block sign-in, D+30: xóa tài khoản hoàn toàn + archive mailbox. Không cần IT làm thủ công — giảm rủi ro quên tắt tài khoản.
Triển khai governance cho org 1000 người: (1) Tạo 4 Catalogs (HR, Finance, Engineering, Sales). (2) Mỗi phòng tạo 3-5 Access Packages cho các level access khác nhau. (3) Lifecycle Workflows cho Joiner/Mover/Leaver. (4) Quarterly Access Reviews cho all Entra roles + sensitive groups. (5) Annual review Access Package assignments. Kết quả: Audit ISO 27001 A.9.2 "User provisioning" có evidence đầy đủ; không có zombie accounts; privilege creep được kiểm soát tự động.
Contoso vừa mua lại 2 công ty nhỏ — giờ có 3 AD forests khác nhau. 150 vendor partners cần truy cập ERP. 20 admin đang có Global Admin standing privilege. CISO audit phát hiện: 300+ guest accounts chưa dọn từ 2 năm trước, 12 app đăng ký trong Entra có quyền Mail.ReadWrite không rõ owner.
- [Tuần 1–2] Deploy Entra Cloud Sync cho 2 forest mới lại (thay vì Connect vì multi-forest). Test Password Hash Sync + Seamless SSO. Verify user sync không duplicate.
- [Tuần 3–4] PIM audit: 20 Global Admin → chuyển 18 về Eligible (chỉ giữ 2 Permanent là break-glass). Cấu hình role settings Global Admin: max 2h, require approval từ CISO.
- [Tuần 5–6] App Registration audit: review 12 apps có Mail.ReadWrite → verify với owners → revoke 7 apps không có owner. Implement Admin Consent workflow (disable user consent).
- [Tuần 7–8] Entitlement Management: tạo Access Package "Vendor-ERP-ReadOnly" và "Vendor-ERP-FullAccess" → 150 vendors self-service → expire 90 ngày → quarterly Access Review.
- [Tuần 9–10] 300 ghost guests → Access Review → auto-remove inactive > 90 ngày. Lifecycle Workflow cho Joiner/Leaver.
- [Tuần 11–12] CA policies: 5 baseline policies + Named Locations cho 5 văn phòng + Authentication Strengths cho admins (FIDO2 only). Enable CAE for all.
- A. Entra Connect Sync — 1 instance, multi-forest mode
- B. ✅ Entra Cloud Sync — deploy agent trên mỗi forest, không cần server trung tâm
- C. Entra Connect + multiple staging servers
- D. Manual provisioning qua Graph API
- A. Tạo Guest account thủ công, set expiry date
- B. Conditional Access policy scoped đến vendor email
- C. ✅ Entitlement Management — Access Package với policy external requestors + approval + 30-day expiry
- D. PIM for Groups — vendor activates group membership
- A. Phải dùng Federation (AD FS) thay vì PHS
- B. ✅ Password Writeback phải được bật trong Entra Connect
- C. Phải có Entra ID P2 license
- D. Phải bật Seamless SSO