Share via


ManagementAuthorization.Revoke Method

Definition

Revokes authorization for the specified user.

Overloads

Revoke(String)

Revokes authorization for the specified user for all configuration paths.

Revoke(String, String)

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

Revoke(String)

Revokes authorization for the specified user for all configuration paths.

public:
 static void Revoke(System::String ^ name);
public static void Revoke (string name);
static member Revoke : string -> unit
Public Shared Sub Revoke (name As String)

Parameters

name
String

The user name for which authorization will be revoked.

Exceptions

name is null or empty.

Remarks

This method removes an authorized user from all paths in the site. After the user's permissions have been revoked, the user is no longer in the list of users on the IIS Manager Permissions page in IIS Manager. Removing a user from the authorized-user list modifies the Administration.config file. If the removed user name is the last entry in any scope, the scope for the empty path will be deleted from the Administration.config file.

Applies to

Revoke(String, String)

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

public:
 static void Revoke(System::String ^ name, System::String ^ configurationPath);
public static void Revoke (string name, string configurationPath);
static member Revoke : string * string -> unit
Public Shared Sub Revoke (name As String, configurationPath As String)

Parameters

name
String

The user name for which authorization will be revoked.

configurationPath
String

The configuration path for which authorization will be revoked.

Exceptions

name is null or empty.

Remarks

This method removes an authorized user from a specified configuration path. After the user's permissions have been revoked, the user is no longer in the list of users on the IIS Manager Permissions page for the specific site in IIS Manager. Removing a user from the authorized-user list modifies the Administration.config file. If the removed user name is the last entry in the scope, the scope for the empty path will be deleted from the Administration.config file.

Applies to