ClientUpdateUserMFA Method |
Activates or deactivates multi-factor authentication for the specified user.
Namespace:
MattermostDriver
Assembly:
MattermostDriver (in MattermostDriver.dll) Version: 0.0.3.10 (0.0.3.10)
Syntaxpublic void UpdateUserMFA(
string user_id,
bool activate,
string code = ""
)
Public Sub UpdateUserMFA (
user_id As String,
activate As Boolean,
Optional code As String = ""
)
public:
void UpdateUserMFA(
String^ user_id,
bool activate,
String^ code = L""
)
member UpdateUserMFA :
user_id : string *
activate : bool *
?code : string
(* Defaults:
let _code = defaultArg code ""
*)
-> unit
Parameters
- user_id
- Type: SystemString
The user ID. - activate
- Type: SystemBoolean
If true, MFA will be activated and a code is required. If false, MFA will be deactivated and a code is not required. - code (Optional)
- Type: SystemString
(Optional) If activating MFA, a valid code is required.
See Also