Share via


DeleteAllUserCredentials(string) Method

The DeleteAllUserCredentials method of the Credentials class deletes all credentials for the given user or group account.

Parameters

strUserAccount   The domain and user account name (domain_name\user_name) or the domain and group account name (domain_name\group_name). Minimum character length of the string equals 1 character; maximum character length of the string equals 272 characters.

Exceptions

Exception Type Condition
SingleSignonException Method failed or incorrect permissions.

Remarks

All credentials for the user are purged from all enterprise application definitions. Only users who are members of the single sign-on administrator account or the application manager account can delete credentials.

The DeleteAllUserCredentials method is audited with a result of success or failure and the user that called the method in the single sign-on database. The ServiceAction enumeration recorded is DeleteCredentials.

Example

The following code example shows how to use the DeleteAllUserCredentials method. To use this example, replace domain_name\\group_name with a valid domain and group on your network.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security