AnonymizeUser

Purpose

The AnonymizeUser function helps to anonymize an active Optiva user.

Syntax

int AnonymizeUser(string userCode, ref string newUserCode, ref Dictionary<string, object> outParams, bool isOut);

Return Value

If the code is successful, a value greater than zero (0) is displayed.

Arguments

Parameter Description
userCode The original user identifier/code that you want to anonymize.
newUserCode The newUserCode parameter has the anonymized user code as output after the function call.
outParams The outParms parameter can be used to output additional parameters or metadata that provide more context about the anonymization process.
isOut The parameter indicating a specific behavior or mode for the anonymization.

Examples

The function anonymizes the user User12345. The variablesnewUserCode and outParameterValues has the anonymized user code, parameter values respectively.

string newUserCode = "";
string outParameterValues = "";
int status = AnonymizeUser("User12345", ref newUserCode, ref outParameterValues, true);