Partager via


Configuring .NET Roles in IIS 7

Applies To: Windows 7, Windows Server 2008, Windows Server 2008 R2, Windows Vista

Roles give you an easy way to manage access rules for groups of users. You create users and then assign the users to roles (in Windows, you assign users to groups). For example, you can create a set of pages that you want to restrict to certain users and store those pages in a folder by themselves. Then you can use IIS 7 to define rules that grant and deny access to restricted folders. If an unauthorized user tries to view a restricted page, the user either sees an error or is redirected to a page that you specify.

Note

Roles do not work with anonymous users who access a site, application, or file.

Prerequisites

For information about the levels at which you can perform these procedures, and the modules, handlers, and permissions that are required to perform these procedures, see .NET Roles Feature Requirements (IIS 7).

Procedures

This task includes the following procedures:

Add .NET Role (IIS 7)

Disable .NET Roles (IIS 7)

Enable .NET Roles (IIS 7)

Remove .NET Role (IIS 7)

Rename .NET Role (IIS 7)

Select a Default Provider for .NET Roles (IIS 7)

View .NET Role Users (IIS 7)