ResetDefenderViolationCount method
Reset a user's Defender violation count. Also allows the violation and reset counts to be viewed without resetting them.
C# syntax
[OperationContract]
[FaultContract(typeof(FaultException))]
UserViolationCount ResetDefenderViolationCount(string userCommonName, bool viewOnly, string userSearchBase);
Parameters
- userCommonName Common name of the user whose violation count is to be reset.
- viewOnly If true, then the violation count and reset count are returned but not adjusted.
- userSearchBase Optional parameter to specify base container in which to search for users.
Return value
Successfull calls return a UserViolationCount. In the case of an error, a Fault is generated.
The faultCode can be one of the following:
- ArgumentOutOfRange One of the arguments was invalid, further details are contained in the faultstring.
- UnknownFault Any other error, further details may be included in the faultstring.
SetDefenderPassword method
Sets the Defender password for a user or all users in a group. When a user account name is specified, that user's Defender password is set. When a group name is specified, the Defender passwords for all users in that group are assigned the specified Defender password.
C# syntax
[OperationContract]
[FaultContract(typeof(FaultException))]
void SetDefenderPassword(string userGroupCommonName, string password, bool expire, bool overwrite, string userSearchBase);
Parameters
- userGroupCommonName Common name of the user or group of users to which the Defender password is to be set.
- password The Defender password to set.
- expire Sets the Defender password to the expired state.
- overwrite Overwrites an existing Defender Password. By default, an existing Defender password cannot be overwritten.
- userSearchBase Optional parameter to specify base container in which to search for users.
Return value
In the case of an error, a Fault is generated. The faultCode can be one of the following:
- ArgumentOutOfRange One of the arguments was invalid, further details are contained in the faultstring.
- UnknownFault Any other error, further details may be included in the faultstring.
SetPinOnUserToken method
Sets a user's PIN for an assigned token.
C# syntax
[OperationContract]
[FaultContract(typeof(FaultException))]
void SetPinOnUserToken(string userCommonName, string tokenCommonName, string tokenPin, string userSearchBase, string tokenSearchBase);
Parameters
- userCommonName Common name of the user to whom the PIN is to be assigned.
- tokenCommonName Common name of the token to which the PIN is to be assigned.
- tokenPin The PIN to assign.
- userSearchBase Optional parameter to specify base container in which to search for users.
- tokenSearchBase Optional parameter to specify base container in which to search for tokens.
Return value
In the case of an error a Fault is generated. The faultCode can be one of the following:
- ArgumentOutOfRange One of the arguments is invalid, further details are contained in the faultstring.
- UnknownFault Any other error, further details may be included in the faultstring.
SetTemporaryResponse method
Sets a temporary response on a user's assigned token.
C# syntax
[OperationContract]
[FaultContract(typeof(FaultException))]
TemporaryResponse SetTemporaryResponse(string userCommonName, string tokenCommonName, int expiryTimeMinutes, bool multipleUse, string userSearchBase, string tokenSearchBase);
Parameters
- userCommonName Common name of the user to whom the temporary response is to be assigned.
- tokenCommonName Common name of the token to which the temporary response is to be assigned.
- expiryTimeMinutes The time interval, in minutes, during which the temporary response remains valid.
- multipleUse If true, then the temporary response can be used multiple times.
- userSearchBase Optional parameter to specify base container in which to search for users.
- tokenSearchBase Optional parameter to specify base container in which to search for tokens.
Return value
A succesful call returns a TemporaryResponse. In the case of an error a Fault is generated.
The faultCode can be one of the following:
- ArgumentOutOfRange One of the arguments was invalid, further details will be contained in the faultstring.
- UnknownFault Any other error, further details may be included in the faultstring.