External Access

Power Pages: Building Secure External Portals

By Tech Cloud Team • • 9 min read

Power Pages is Microsoft's low-code platform for building secure external websites on top of Dataverse. To secure a Power Pages portal for a regulated enterprise, you combine four layers: strong authentication through an external identity provider, least-privilege table permissions assigned to web roles, network and browser protections such as a web application firewall (WAF) and a content security policy, and an operating process for testing, monitoring and change control.

Why Power Pages for external portals?

Unlike a traditional CMS such as WordPress or Drupal, Power Pages is built directly on Dataverse. When a customer updates a profile on the portal, the record in your CRM or line-of-business app changes immediately. There is no synchronisation job and no separate API layer to secure, patch and monitor. That is also why the security model matters so much: the portal reads and writes real business data.

Typical enterprise patterns are customer self-service (tickets, invoices, appointments), partner portals for distributors and resellers, and public-sector services where citizens apply for permits, licences or grants. All three expose personal or commercial data to people outside your organisation, so each needs the controls below.

How to secure a Power Pages portal, step by step

Step 1: Choose an authentication provider

Power Pages supports Microsoft Entra ID, Microsoft Entra External ID, and any OpenID Connect or SAML 2.0 provider such as Okta, as well as social providers like Google and LinkedIn. Keeping identity outside Dataverse gives you MFA, conditional access, password policy and account recovery from a platform built for it.

OptionBest forNotes
Microsoft Entra External IDCustomers and citizensExternal identities with self-service sign-up, social sign-in and MFA; the natural choice for new consumer-facing portals
Microsoft Entra IDStaff and partner organisationsReuses existing work accounts, conditional access and B2B guest access
OpenID Connect / SAML 2.0 (e.g. Okta)Organisations with an existing identity providerFederates the portal to the identity system you already govern
Local sign-in (username and password)Prototypes onlyCredentials are stored in the portal itself; avoid for regulated or sensitive data

Step 2: Model access with web roles

A web role groups portal users, for example "Gold Partner", "Standard Customer" or "Case Officer". Every signed-in user also belongs to the built-in Authenticated Users role, and every visitor to Anonymous Users. Design the roles from the business question "who may see what", and assign them to contact records, not to individual pages.

Step 3: Write least-privilege table permissions

Table permissions are the core control in Power Pages. Each permission names a Dataverse table, an access type and a set of privileges (read, write, create, delete, append, append to), and is assigned to one or more web roles. Without a matching permission, a user sees no rows.

Access typeWhat it grantsTypical use
GlobalAll rows of the tableReference data such as product categories
ContactRows related to the signed-in contactA customer sees only their own cases
AccountRows related to the contact's parent accountColleagues in one partner company share orders
ParentChild rows of a row the user already has access toOrder lines under a visible order
SelfThe contact's own recordProfile editing

Prefer Contact, Account and Parent scopes over Global, grant only the privileges a role really needs, and use column permissions where a table holds fields the portal must never expose. Test with real test users from each role, not only as an administrator.

Step 4: Lock down forms, lists and the Web API

Forms and lists honour table permissions, but the Power Pages Web API must be enabled per table and per column through site settings. Enable only the tables and fields your custom JavaScript needs. If a page only displays data, it does not need write access, and a hidden button is never a substitute for a permission.

Step 5: Add network and browser protections

Place a web application firewall (WAF), for example Azure Front Door with WAF, in front of the portal to filter malicious traffic, rate-limit abusive clients and restrict access by geography or IP range where your use case allows. Configure a content security policy so browsers load scripts, styles and frames only from sources you trust, and review any third-party scripts you embed.

Step 6: Separate environments and automate deployment

Build in a development environment, test in a mirror of production and deploy to production through a controlled pipeline. Power Pages site configuration can be exported and imported with the Power Platform CLI, and solutions carry the Dataverse tables, web roles and table permissions between environments. Manual edits in production are how permissions drift.

Power Pages for GDPR and regulated industries

Banks, insurers, healthcare providers and public bodies share the same questions from auditors. Where is the data stored? Who can see it? Can you prove who changed it? With Power Pages, the answers come from configuration you control:

  • Data location: data lives in the Dataverse environment, whose region you choose when you create it.
  • Data minimisation: expose only the columns the portal needs, and keep sensitive fields behind column permissions or out of the portal entirely.
  • Auditing: enable Dataverse auditing on tables with personal data so you can show who read or changed a record.
  • Retention and deletion: define how long portal data is kept and how a data subject's request is handled.
  • Data loss prevention: apply DLP policies so portal flows cannot send data to unapproved connectors.

Pre-launch security checklist

  • External identity provider configured, MFA enforced where the data justifies it, local sign-in disabled.
  • Every web role documented with its business purpose and owner.
  • Every table permission reviewed; nothing broader than needed is attached to Anonymous Users or Authenticated Users.
  • Column permissions set for sensitive fields; Web API enabled only for the tables and columns in use.
  • WAF in front of the site and a content security policy configured and tested.
  • Development, test and production environments separated; deployments run through a pipeline.
  • Auditing enabled for personal data; retention and deletion process agreed.
  • Tested as a user from each web role, as an anonymous visitor, and as a user who should have no access.
  • Monitoring and an incident contact in place for the live site.

Common mistakes to avoid

  • Global access type everywhere. It is quick during development and exposes every row once forgotten.
  • Giving permissions to Authenticated Users. Any registered person then gets the rights, which defeats role separation.
  • Relying on hidden UI. Hiding a button or a menu item does not stop a direct request; only a permission does.
  • Testing as an administrator. Admins bypass the problems your users will hit, or the leaks they should not have.
  • Open self-registration without invitation or validation for portals meant for known partners.
  • Editing production directly. It breaks traceability and makes it impossible to reproduce a permission state.

Extending with Liquid, JavaScript and the Web API

Power Pages offers a robust design studio, and web developers can go further with the Liquid template language, JavaScript, CSS and the Web API to build fully custom experiences. The rule is simple: custom code changes the look and flow, never the rights. Every request still passes through table permissions.

From our projects

For the City of Bratislava we built a custom model-driven Power Apps solution for secure citizen services on Dataverse, designed to comply with GDPR and security standards. It serves 15,000+ users and is 100% security compliant. The same approach, a security model designed first with roles, row-level and column-level security, is what we apply to external portals. See also our Power Apps development service, which covers Power Pages portals.

Frequently asked questions

Is Power Pages secure enough for regulated industries?

Yes, if it is configured deliberately. Power Pages enforces access in the Dataverse layer through table permissions and web roles, supports external identity providers and multifactor sign-in, and can sit behind a web application firewall. Whether a given portal meets your regulator's requirements still depends on its data model, permissions, hosting region and operating processes.

What is the difference between table permissions and web roles?

A web role groups portal users, for example Partners or Customers. A table permission defines which Dataverse table and rows the role may read, create, update, delete or append. Users never get rights directly; they get them through the web roles assigned to their contact record.

Which authentication provider should I use for a customer portal?

For new external-facing portals, Microsoft Entra External ID or another OpenID Connect or SAML provider is the usual choice, because it keeps identities, MFA and password policy outside Dataverse. Use Microsoft Entra ID for staff or partner organisations that already have work accounts. Avoid local username and password sign-in for anything sensitive.

Can anonymous users see data in Power Pages?

Only if you grant it. Anonymous visitors have the built-in Anonymous Users web role, and they see Dataverse data only where a table permission is explicitly assigned to that role. Review every permission attached to Anonymous Users before go-live.

How do I make a Power Pages site GDPR-friendly?

Collect only the fields you need, choose the Dataverse environment region deliberately, enable auditing for personal data, define retention and deletion rules, and give users a way to correct or remove their data. Document the lawful basis and your processors, as for any system that handles personal data.

Does Power Pages support custom code?

Yes. Developers can use Liquid templates, JavaScript, CSS, the Power Pages Web API and server-side logic in Dataverse such as plug-ins and Power Automate flows. Every custom call still passes through table permissions, so custom code does not bypass the security model.


Connect With Your Customers Securely

Tell us who your portal is for and what data it touches. We reply with a concrete next step.

Launch Your Portal