Create and assign web roles
A web role is basically a collection of permissions to the content of your site. Before you can grant authenticated users access to restricted tables or restricted pages, you need to assign them to a web role.
Use the Portal Management app to create and assign web roles.
Create a web role
Sign in to Power Pages and open your site for editing.
In the left side panel, select More items (…) > Portal Management.
In the left side panel of the Portal Management app, scroll down to Security and select Web Roles.
Select New.
Enter or select a Name, the Website to associate with the role, and an optional Description.
Select whether authenticated or unauthenticated users should have this role by default. The default for both is No.
- If authenticated users should have this role by default, select Yes for Authenticated Users Role. A website should have only one web role that's the default role for authenticated users.
- If unauthenticated users should have this role by default, select Yes for Anonymous Users Role. A website should have only one web role that's the default role for unauthenticated users. The Anonymous Users Role respects only table permissions.
Select Save.
Default web role for authenticated or anonymous users
If you set Authenticated Users Role to Yes, the web role is the default role for all users. This role is commonly used to provide predetermined access for users who aren't assigned any other roles. Keep in mind that users can have multiple web roles, but a site can have only one Authenticated Users web role for authenticated users.
If you set Anonymous Users Role to Yes, the web role is the default role for all users. This role is intended to be used with table permissions. It doesn't respect any other rules or permissions. A site can have only 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. However, if your site uses the enhanced data model, then assign web roles from the contact under the enhanced data model.
From the web role
In the Portal Management app, select Security > Web Roles.
Select a web role.
Select the Related tab, and then select Contacts.
Select Add Existing Contact.
Search for and select the site users to assign to the web role.
Select Add, and then select Save.
From the contact
In the Portal Management app, select Security > Contacts.
Select a contact.
Select the Related tab, and then select Web Roles.
Select Add Existing Web Role.
Search for and select the web roles to assign to the site user.
Select Add, and then select Save.
From the contact (enhanced data model)
In the Power Pages Management app, select Security > Contacts.
Select a contact.
Select the Portal Contact (Enhanced Form)
In the General tab, scroll down to the Web Roles section and select Add Existing Web Role.
Search for and select the web roles to assign to the site user.
Select Add, and then select Save.
See also
Set table permissions
Assign table permissions
Tutorial: Display data securely on your site