Configure web roles
Power Pages is built on the foundation of Power Apps portals. Many of the tools and methods used to configure Power Pages use the functionality of Power Apps portals.
Configure and assign web roles using the Portal Management app.
To access the Portal Management app, navigate to the design studio.
Select the ellipsis (...) from the tool belt, and then select Portal Management.
Select Web Roles in the Security section.
Enter appropriate values in the fields.
Attributes and relationships
The table below explains the web role attributes used by portals.
|Name||The descriptive name of the web role|
|Website||The associated website|
|Description||An optional explanation of the web role's purpose.|
|Authenticated Users Role||Boolean. If set to true, this web role is the default for authenticated users (see below). Websites should only have one web role with the Authenticated Users Role attribute set to true.|
|Anonymous Users Role||Boolean. If set to true, this web role is the default for unauthenticated users (see below). Websites should only have one Web Role with the Anonymous Users Role attribute set to true. The Anonymous Users Role will only respect table permissions.|
Optional default web roles
Now that the web role has been created, you can configure it to meet your needs via various permissions, rules, and associations.
Enabling the Authenticated Users Role makes it the default web role for all users. This role is commonly used to provide a predetermined access for users that aren't associated to any other roles. Keep in mind that users can have multiple web roles, but there can only be one Authenticated Users web role for authenticated users.
The Anonymous Users Role is intended to be used with table permissions. It will not respect any other rules or permissions. Enabling the Anonymous Users Role makes it the default web role for all users. There can only be one Anonymous Users web role for unauthenticated users.
Assign users to web roles
You can assign site users to web roles from either the contact record or the web role record.
From the web role
In the Security section, select Web Roles.
Locate and open the web role record that you want to assign site users to.
Select the Related tab and select Contacts.
Select Add Existing Contact.
From the side panel, search and select the contacts (site users) that you want to assign to the web role.
The users now have access to the resources specified by the web role.
From the contact
In the Security section, select Contacts.
Locate and open the contact record that you want to assign the web role to.
Select the Related.
Select Web Roles.
Select Add Existing Web Role.
From the side panel, search and select the web roles you want to assign to the contact (site user).
The site users now have access to the resources specified by the web role.
Feedback senden und anzeigen für