microsoft-fabric-security-governance
Configure and verify Microsoft Fabric security and governance, including tenant settings, workspace roles, item-level sharing, OneLake data access roles, RLS and OLS in semantic models, and Microsoft Purview sensitivity labels. Use when securing a Fabric tenant or workspace, assigning Admin, Member, Contributor, or Viewer roles, checking effective permissions via the Fabric REST API, or troubleshooting unexpected access or denials.
- License 许可
- Apache-2.0
- 最近更新
- 2026-10-27
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- microsoft-fabric-security-governance
- description
- Configure and verify Microsoft Fabric security and governance, including tenant settings, workspace roles, item-level sharing, OneLake data access roles, RLS and OLS in semantic models, and Microsoft Purview sensitivity labels. Use when securing a Fabric tenant or workspace, assigning Admin, Member, Contributor, or Viewer roles, checking effective permissions via the Fabric REST API, or troubleshooting unexpected access or denials.
03 SKILL.md 正文
Microsoft Fabric Security Governance
Outcome
A Fabric tenant and workspace security posture where every role assignment, data access role, and label is verifiable through the Fabric REST API and portal, and restricted identities see exactly what the design intends.
Setup
- All Fabric management uses the REST base
https://api.fabric.microsoft.com/v1/...with an Entra token for scopehttps://api.fabric.microsoft.com/.default. Keep tokens in environment variables or a secret store — never in files, prompts, logs, or artifacts. - Before using a service principal, a tenant admin must enable "Service principals can call Fabric public APIs" (Developer settings). Read-only admin APIs additionally require "Service principals can access read-only admin APIs".
- Tenant settings change at the admin portal level (Fabric admin role); there is no public CLI — treat portal configuration as code-reviewed change requests with screenshots or exports as evidence.
Security layers
Configure from the outside in; each layer narrows the previous one:
- Tenant settings: gate risky capabilities at the tenant — external data sharing, guest user access, publish to web, export to Excel/CSV, OneLake access from external apps, customer-managed keys ("Apply customer-managed keys"). Prefer group-scoped enablement over tenant-wide.
- Workspace roles: Admin (manage workspace and people), Member (add members, publish), Contributor (create/write items), Viewer (read only). Assign security groups, not individuals. Only Viewers are subject to OneLake security and semantic model RLS/OLS — Admin, Member, and Contributor have elevated data access that bypasses them.
- Item-level sharing: share an item directly without workspace membership.
Readshows metadata;ReadDataallows SQL endpoint reads;ReadAllallows OneLake reads through the DefaultReader role;Writegrants data write. Reshare must be deliberate. - OneLake data access roles: deny-by-default data-plane roles on a lakehouse, scoped to folders, tables, or schemas, with optional row and column constraints (T-SQL predicates). Edit or remove the DefaultReader role when default read-all access is too broad.
- Semantic model RLS/OLS: RLS restricts rows via DAX filter expressions (dynamic pattern:
[UserEmail] = USERPRINCIPALNAME()); OLS hides whole tables or columns via TMDLmetadataPermission: none. Both apply to Viewers only. Validate with "Test as role", but note it uses your own identity — dynamic RLS for B2B guests must be validated by signing in as the guest. - Sensitivity labels and Purview: Purview Information Protection labels classify and protect items, inherit downstream, and travel with supported exports; Purview also provides audit, DLP for Fabric data, and Unified Catalog discovery.
Verify effective permissions via API
Read-only; safe to run without approval:
# Workspace role assignments (caller needs Member or higher; scope Workspace.Read.All)
curl -H "Authorization: Bearer $FABRIC_TOKEN" \
"https://api.fabric.microsoft.com/v1/workspaces/$WORKSPACE_ID/roleAssignments"
# OneLake data access roles on an item (scope OneLake.Read.All)
curl -H "Authorization: Bearer $FABRIC_TOKEN" \
"https://api.fabric.microsoft.com/v1/workspaces/$WORKSPACE_ID/items/$ITEM_ID/dataAccessRoles"
Interpret the results: workspace role first (Viewer or not), then item permissions, then OneLake data access roles, then semantic model RLS/OLS. A user's effective access is the union across OneLake roles; RLS predicates combine with OR, so over-broad membership silently widens access.
Mutating operations — gated
- Add/change workspace role assignment:
POST /v1/workspaces/{workspaceId}/roleAssignments(scopeWorkspace.ReadWrite.All; caller needs Member or higher, Admin to add admins). - Create or update OneLake data access roles:
PUT /v1/workspaces/{workspaceId}/items/{itemId}/dataAccessRoles(scopeOneLake.ReadWrite.All), using theETagfrom a prior GET for concurrency. - Tenant setting changes: portal, Fabric admin.
For each: capture the current state with the GET calls above (this is your rollback), state the exact diff, get explicit user approval, execute, then re-run the GET and confirm the intended diff is present. Removing a role or demoting a user can break production pipelines running under that identity — check what runs as the principal before demoting.
Version and feature checks
Fabric is a SaaS platform: features ship and change continuously, and several (authorized third-party engines for OneLake security, some DLP surfaces) are in preview with per-tenant availability. Before relying on a capability, confirm it in the current tenant settings page and the linked docs below, and note preview status in the design. Role definition changes take about 5 minutes to apply; group membership changes can take about an hour (plus engine caching) — do not conclude a change failed from an immediate test.
Troubleshooting
- Service principal gets 401/403 on Fabric APIs: the tenant settings for service principal API access are off, or the SP has no workspace role — the roleAssignments API itself requires Member or higher.
- Viewer still sees all data in the lakehouse: the DefaultReader role grants read to all users with ReadAll — edit or delete it and create scoped roles.
- RLS not applied to a user: they hold Admin, Member, or Contributor — RLS and OLS apply to Viewers only.
- B2B guest sees no data under dynamic RLS:
USERPRINCIPALNAME()returns a#EXT#UPN that does not match the mapping table — display the function's value in a test card and align the table. - Distribution list in a OneLake role not enforced at the SQL analytics endpoint: the endpoint cannot resolve distribution list membership — use Entra security groups.
- API returns 429: honor the
Retry-Afterheader before retrying.
Shared resources
Load only the resources needed for the current task. The links resolve inside the current agent package; the skill works without them.
../../references/security-control-baseline.md../../templates/production-readiness-checklist.md
References
- Fabric tenant settings index: https://learn.microsoft.com/en-us/fabric/admin/tenant-settings-index
- Workspace roles (Admin/Member/Contributor/Viewer): https://learn.microsoft.com/en-us/fabric/fundamentals/roles-workspaces
- OneLake security overview: https://learn.microsoft.com/en-us/fabric/onelake/onelake-security
- OneLake data access control model (roles, RLS/CLS, evaluation): https://learn.microsoft.com/en-us/fabric/onelake/security/data-access-control-model
- Row-level security in semantic models: https://learn.microsoft.com/en-us/fabric/security/service-admin-row-level-security
- Object-level security: https://learn.microsoft.com/en-us/power-bi/enterprise/service-admin-ols
- Sensitivity labels and information protection: https://learn.microsoft.com/en-us/fabric/governance/information-protection
- Microsoft Purview integration with Fabric: https://learn.microsoft.com/en-us/fabric/governance/microsoft-purview-fabric
- Workspace role assignments API: https://learn.microsoft.com/en-us/rest/api/fabric/core/workspaces/list-workspace-role-assignments
- OneLake data access roles API: https://learn.microsoft.com/en-us/rest/api/fabric/core/onelake-data-access-security/list-data-access-roles
Completion check
The roleAssignments and dataAccessRoles API responses match the approved design, a Viewer-role test identity sees exactly the permitted rows and columns (proven by sign-in, not just "Test as role"), and every tenant setting that permits sharing, export, or external access is either disabled or scoped to a named group with a recorded owner.
04 同仓库更多 Skills
twenty-year-land-plan
Apply the Bren discipline of evaluating every land and development decision on a twenty-year horizon, with a comprehensive plan for how the land, the community, and the surrounding public infrastructure evolve together. Deals optimized for a five-year exit are structurally different from deals that compound across generations; insist on knowing which kind you are making. Use when evaluating land, entitlements, master-planned development, or phasing decisions, and when separating five-year exit deals from generational holds.
thematic-gut-check
Apply the Gray discipline of identifying the structural theme behind every real estate deal, testing where that theme sits in its capital-flow lifecycle, and insisting that deals without a named theme — or deals late in a crowded theme — clear a higher bar. A mediocre deal in a strong theme usually beats a clever deal in a weak one. Use when naming the structural thesis behind a deal, judging whether that theme is early or crowded, and setting the bar the deal must clear.
supply-pipeline-gut-check
Apply the Zell discipline of grounding every real estate thesis in the local supply pipeline. Demand counts over adjectives — units under construction, units permitted, units proposed — and convert them into a forward absorption schedule. A deal that ignores the pipeline is a bet on a market you have not actually studied. Use when validating a market thesis, forecasting absorption and rent growth, or counting units under construction, permitted, and proposed.
ruin-scenario-mapping
Apply the Taleb discipline of identifying, for every real estate deal, the specific chain of events that produces ruin — permanent, unrecoverable capital loss — and verifying that no single such chain has non-trivial probability. Deals with any plausible ruin path must be restructured or abandoned. Use when sizing leverage, testing refinancing, covenant, and liquidity risk, or checking whether any single failure chain can permanently wipe out the position.
revenue-cost-architecture
Design a venture's revenue streams, pricing logic, cost structure, and unit economics so the business model has a coherent theory of value capture, not just value creation. Use after the value proposition and customer segment are set and before financial projections, when choosing a pricing model, calculating contribution margin or CAC payback, or checking whether the unit economics hold at scale.
replacement-cost-stress-test
Apply the Buffett discipline of pricing every real estate asset against the cost to rebuild it from scratch. The ratio of purchase price to replacement cost sets a ceiling on long-run downside: below replacement cost, new supply cannot profitably undercut you; at or above it, you are buying a liability disguised as an asset. Use when setting a purchase price, judging downside protection, or testing how exposed an asset is to newly built competing supply.