A Microsoft Power Pages site puts Dataverse records on the public internet, and the data it shows to an anonymous visitor is decided by a handful of table permissions, web roles and Web API site settings that makers configure themselves. These are customer-side settings under the shared responsibility model: the platform enforces them, and the site owner decides what they allow. This guide is for Power Platform administrators and makers who build or review external sites. It explains how a site exposes data, how anonymous and authenticated access work, how to scope table permissions and the portals Web API, and how to use the Security workspace, security scan and Site Checker to find exposure before visitors do.
This is an independent guide from NHI Mgmt Group, based on Microsoft's public documentation as of November 2026. It is not sponsored or reviewed by Microsoft. Product features change, so confirm settings against Microsoft's current documentation.
Key takeaways
- Table permissions decide what data leaves Dataverse. Lists, forms, Liquid and the portals Web API all read records through table permissions linked to web roles; without a permission, access is restricted.
- The Anonymous Users web role is everyone on the internet. Microsoft states that when this role is granted access to a table, any visitor can access the data in it, so treat each such permission as a publication decision.
- Global access is the widest scope. Prefer Contact, Account, Self or parent-child scopes so each user sees only records related to them.
- Web API exposure is opt-in per table and per column. Webapi/<table>/enabled defaults to False; list explicit columns in Webapi/<table>/fields, because the wildcard is deprecated.
- Scan and review on a schedule. Run the security scan, act on the Site Checker check for anonymous access to Dataverse tables, and review web roles and table permissions at every release.
How Power Pages exposes data
Power Pages users are Dataverse contact records. A visitor reaches data through site components (lists, forms, multistep forms, Liquid templates and client-side calls to the portals Web API at the /_api route), and each request is checked against the visitor's web roles and the table permissions attached to them. Microsoft's security overview lists the components of the model as site visibility, authenticated users, web roles, table permissions, page permissions, HTTP headers and security scan.
| Layer | What it controls | Where to configure it | Review question |
|---|---|---|---|
| Site visibility | Private (organisation users signing in with Microsoft Entra ID) or public (anyone on the internet) | Security workspace, Manage, Site visibility | Should this site be public yet, and who can change that? |
| Authentication | Which identity providers create authenticated contacts | Security workspace, Identity providers | Are only the intended providers enabled? |
| Web roles | Collections of permissions; cumulative when a user holds several | Portal Management app, Security, Web Roles | Which roles are assigned by default to anonymous or authenticated users? |
| Table permissions | Record access in Dataverse tables by scope and privilege | Security workspace, Protect, Table permissions | Which permissions include the Anonymous Users role or Global access? |
| Column permissions | Privileges on individual columns, including through the Web API | Portal Management app | Are sensitive columns restricted even where records are readable? |
| Page permissions | Restrict read and grant change rules on pages and web files | Design studio page settings or Web Page Access Control Rules | Do restricted pages also have restricted data behind them? |
| Web API site settings | Which tables and columns are reachable at /_api | Site settings (Portal Management app) | Is each enabled table needed, with an explicit column list? |
| HTTP headers and WAF | CORS, Content Security Policy, framing, edge filtering | Security workspace, Advanced settings; Web Application Firewall | Do headers match the recommended values? |
A key design point: page permissions hide pages, but they do not restrict data. A record readable through a table permission can still be requested through the Web API or another component even if the page that normally shows it is restricted. Secure the data layer first, then the pages. For the wider platform model (Dataverse security roles, environment roles and data policies), see the Microsoft Dynamics 365 and Power Platform Security Guide.
Anonymous and authenticated access
Microsoft documents that sites created in Power Pages are private by default, visible only to makers and organisation users the maker grants access to (up to 50 users on the site visibility page), and that websites in developer environments cannot be made public. Switching a site to public restarts it and makes it reachable by anyone, anonymously or through configured identity providers.
- Control who can publish: members of the Power Platform administrator and Dynamics 365 administrator Entra roles can change site visibility. System administrators of the environment can too, unless the tenant setting enableSystemAdminsToChangeSiteVisibility is set to false, in which case they must also be in a designated Entra security group. Its default value is null, which lets system administrators change visibility, so set it explicitly.
- Govern non-production sites: tenant admins can block makers from making a site public when the site or its environment is non-production. Turn this on so test sites with copied data stay private.
- Restrict site creation: CISA's SCuBA Power Platform baseline (MS.POWERPLATFORM.5.1v1) says the ability to create Power Pages sites SHOULD be restricted to admins, because users may unintentionally misconfigure sites and expose sensitive information.
- Anonymous Users web role: a site can have only one, and Microsoft describes it as intended to be used with table permissions. Anything granted to it is public. When a public site has anonymous table access, the design studio shows a warning that the data displayed can be seen by anyone.
- Authenticated Users web role: every authenticated contact receives it automatically, and a site can have only one. On sites with open self-registration, treat this role as close to public as well, because anyone who signs up holds it.
- IP restrictions: for sites meant only for a known network, the Power Platform admin center can restrict access to listed public IP addresses, returning HTTP 403 to others. When the Web Application Firewall is enabled, Microsoft directs IP filtering to WAF custom rules instead.
For identity providers and external identities, see the Azure AD B2C to Entra External ID guide.
Table permissions and web roles
Table permissions grant privileges on a Dataverse table to the users in the web roles linked to that permission. A permission with no web role has no effect. Privileges are Read, Write, Create, Delete, Append and Append To, and the access type sets which records they apply to.
| Access type (scope) | Records covered | Typical use | Risk if misapplied |
|---|---|---|---|
| Global | All records in the table | Reference data meant for everyone, such as a product catalogue or published knowledge articles | With the Anonymous or Authenticated role, the whole table is exposed |
| Contact | Records related to the signed-in user's contact through a chosen relationship | A customer's own cases, orders or applications | Wrong relationship choice can link users to records they should not see |
| Account | Records related to the signed-in user's parent account | Business customers sharing records within their company | Everyone in the account sees everything related to it; check account membership hygiene |
| Self | Only the user's own contact record | Profile pages | Low, but check which columns are writable |
| Parent (child permissions) | Records related to records already permitted by a parent permission | Case notes under a user's cases | Child access widens if the parent scope is too broad; deactivating a parent makes children ineffective |
| Custom (preview) | Records matching a FetchXML filter, on sites with enhanced authorisation | Condition-based access such as active cases of a given type | Only the filter element is evaluated; test filters with real role assignments |
Review the anonymous role first
- List every table permission linked to the Anonymous Users role. In the Security workspace, group table permissions by role. Each entry needs a documented business reason and an owner.
- Remove privileges anonymous users do not need. Anonymous Create may be needed for a contact form; anonymous Read on customer, case or contact tables almost never is.
- Replace Global scope with a relationship scope wherever records belong to a person or organisation.
- Restrict columns. Use column permissions and the Web API fields list so a readable record does not reveal every column.
- Repeat for the Authenticated Users role on sites with open registration.
- Test as each role. Sign in with test contacts holding each web role, and browse anonymously, to confirm what each can read and change.
This is the Power Pages form of object-level and property-level authorisation; see the OWASP API Top 10 API1 Broken Object Level Authorization Guide and the OWASP API Top 10 API3 Broken Object Property Level Authorization Guide.
Web API settings
The portals Web API lets pages create, read, update and delete records in Dataverse tables through the /_api route, following a RESTful pattern similar to the Dataverse Web API. Microsoft positions it for rich user experiences inside site pages; integrations with other services use the Dataverse Web API. Calls use the user's session for authentication and must include a CSRF token. Web API access follows the same table permissions and web roles as other components, so an anonymous permission also applies to anonymous Web API calls.
| Site setting | Default | Purpose | Secure configuration |
|---|---|---|---|
| Webapi/<table-name>/enabled | False | Turns the Web API on for one table (logical name, for example account) | Enable only for tables the site's own scripts call |
| Webapi/<table-name>/fields | Not set | Comma-separated column logical names available through the Web API | List only required columns; the wildcard (*) is deprecated and requests for tables configured with it fail until explicit columns are set |
| Webapi/<table-name>/UseFieldsFromView | False | Uses columns from a system view named Power Pages Web API Columns (site version 9.8.8.x and later) | Use where a view is easier to govern; columns from both sources are combined |
| Webapi/error/innererror | False | Returns inner error detail in responses | Keep False in production; enable briefly for troubleshooting only |
- Inventory exposed tables: list every Webapi/*/enabled setting with value true, and match each to a script on the site that needs it. Remove the rest.
- Combine three filters: the table permission decides which records, the fields list or view decides which columns, and column permissions refine privileges per column. All three should be narrow.
- Remember the anonymous cost: Microsoft notes that Web API calls by anonymous users count towards anonymous user capacity, another reason to limit anonymous Web API use to what the site needs.
- Integration traffic: back-end systems should use the Dataverse Web API with their own application identity, not the portals Web API. For application users and their credentials, see the Entra ID Applications and Consent Guide.
Monitoring and site checker
The Security workspace in design studio brings monitoring and configuration together: Run scan under Monitor; web roles, page permissions, table permissions and the Web Application Firewall under Protect; identity providers, site visibility and advanced settings (HTTP headers, CSP, CORS, cookies) under Manage.
- Security scan: Run Deep Scan (Power Pages Core 1.0.2403.84 or later) checks for common threats such as cross-site scripting and insecure libraries. By default it scans anonymous pages only; select Include authenticated pages in scan to cover signed-in areas. The summary report lists failed checks with remediation and can be downloaded as a PDF.
- Site Checker security checks (preview): include Web Application Firewall enabled, Anonymous access to Dataverse tables (fails when any table permission allows anonymous access), Web template validation (fails when DisableValidationWebTemplate is set to true), and HTTP header checks.
- Web Application Firewall: powered by Azure Front Door in Prevention mode, with managed rule sets covering cross-site scripting, local and remote file inclusion, session fixation and protocol attacks, and custom rules for geo location, IP address and request URI, including rate limits. See the Azure Front Door and Application Gateway WAF Security Guide.
- Audit records: Microsoft notes that Web API request headers carry a contact ID for auditing (null for anonymous users) and that audit events appear in the Microsoft 365 audit log when activity logging is enabled. Enable Dataverse auditing on tables the site exposes, and forward records to the SIEM.
| Site Checker header check | Site setting | Recommended value (Microsoft) |
|---|---|---|
| Access-Control-Allow-Origin restriction | HTTP/Access-Control-Allow-Origin | False or remove the setting |
| Access-Control-Allow-Credentials restriction | HTTP/Access-Control-Allow-Credentials | False or remove the setting |
| Content Security Policy | HTTP/Content-Security-Policy | script-src https: 'nonce' |
| X-Frame-Options configuration | HTTP/X-Frame-Options | SAMEORIGIN or DENY |
| X-Content-Type-Options configuration | HTTP/X-Content-Type-Options | nosniff |
See the Content Security Policy Guide and the CORS Misconfiguration Guide for header design.
Metrics to track
- Number of table permissions linked to the Anonymous Users role, each with a recorded owner and reason.
- Number of Global-scope permissions on tables holding personal or customer data (target zero).
- Web API tables enabled versus tables actually called by site scripts.
- Days since the last security scan with authenticated pages included, and open failed checks.
- Public sites in non-production environments (target zero).
Common failure patterns
- Anonymous Read on a business table: a permission added during development so a list would render, never removed before go-live.
- Global scope where Contact or Account was meant: every authenticated user sees every record, which on an open-registration site is close to public.
- Page permissions treated as data security: a restricted page hides the list, but the table permission still allows the records through other components or the Web API.
- Broad Web API columns: a table enabled for one script returns many more columns than the page displays.
- Verbose errors left on: Webapi/error/innererror set to true after troubleshooting.
- Scans of anonymous pages only: the authenticated area, where most data sits, is never scanned.
Framework mapping
| Framework | Reference | Power Pages control |
|---|---|---|
| NIST SP 800-53 Rev. 5 | AC-3, AC-14 | Table permissions; deliberate, documented anonymous permissions |
| NIST SP 800-53 Rev. 5 | AU-2, RA-5, SC-7 | Dataverse auditing; security scan; WAF and headers |
| NIST CSF 2.0 | PR.AA-05, PR.PS-01 | Least-privilege web roles and permissions; configuration management of site settings |
| OWASP API Security Top 10 2023 | API1:2023, API3:2023 | Relationship scopes; Web API fields and column permissions |
| MITRE ATT&CK v20 | T1190, T1213 | Exposed public application; data collected from information repositories |
| CISA SCuBA | MS.POWERPLATFORM.5.1v1 | Restrict Power Pages site creation to admins |
Practitioner checklist
- Restrict Power Pages site creation to admins and block public visibility for non-production sites.
- Set enableSystemAdminsToChangeSiteVisibility explicitly and limit who can make a site public.
- Review every table permission on the Anonymous Users and Authenticated Users roles before go-live.
- Replace Global scope with Contact, Account, Self or parent-child scopes for personal and customer data.
- Enable the Web API only for tables site scripts call, with explicit column lists and innererror off.
- Apply column permissions to sensitive columns in readable tables.
- Run the security scan including authenticated pages at each release and track Site Checker results.
- Enable the Web Application Firewall and set HTTP headers to the recommended values.
- Turn on Dataverse auditing for exposed tables and forward audit records to the SIEM.
Standards and references
- Microsoft Learn: Power Pages security
- Microsoft Learn: Configuring table permissions
- Microsoft Learn: Assign table permissions
- Microsoft Learn: Portals Web API overview
- Microsoft Learn: Run security scan
- Microsoft Learn: Site Checker security issues
- Microsoft Learn: Site visibility in Power Pages
- CISA: SCuBA Power Platform security baseline
Related NHI Mgmt Group resources: Microsoft Dynamics 365 and Power Platform Security Guide · Microsoft 365 Security Guide · SaaS Security Guide · Web Application Firewall Guide