ManagementAuthorization Class

IIS 7.0
 

Provides functionality for managing the authorization list for a specific site or application.

Namespace:   Microsoft.Web.Management.Server
Assembly:  Microsoft.Web.Management (in Microsoft.Web.Management.dll)

System.Object
  Microsoft.Web.Management.Server.ManagementAuthorization

public static class ManagementAuthorization

NameDescription
System_CAPS_pubpropertySystem_CAPS_staticProvider

Gets the authorization provider for IIS Manager. 

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticGetAuthorizedUsers(String, Boolean, Int32, Int32)

Retrieves a collection of authorized users for the specified configuration path.

System_CAPS_pubmethodSystem_CAPS_staticGetConfigurationPaths(IPrincipal, String)

Returns an array of configuration paths that the specified principal is authorized to configure.

System_CAPS_pubmethodSystem_CAPS_staticGrant(String, String, Boolean)

Grants authorization to a user name or role for the specified configuration path.

System_CAPS_pubmethodSystem_CAPS_staticIsAuthorized(IPrincipal, String)

Retrieves a value indicating whether the specified principal is authorized for the specified configuration path.

System_CAPS_pubmethodSystem_CAPS_staticRenameConfigurationPath(String, String)

Renames a configuration path.

System_CAPS_pubmethodSystem_CAPS_staticRevoke(String)

Revokes authorization for the specified user for all configuration paths.

System_CAPS_pubmethodSystem_CAPS_staticRevoke(String, String)

Revokes authorization for the specified user for the specified configuration path.

System_CAPS_pubmethodSystem_CAPS_staticRevokeConfigurationPath(String)

Removes all authorized users from the specified configuration path.

Permissions for IIS Manager are granted for a specific site or application and not at the server level. The ManagementAuthorization object determines whether a user or role should be granted access to a specific site or application. A list of authorized users is available on the IIS Manager Permissions page of IIS Manager. 

This class cannot be inherited.

The following example implements several of the methods and properties of the ManagementAuthorization and ManagementAuthorizationInfo classes. This example adds a specified user to a specified site and displays a collection of authorized users of that specified site.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: