ClientSwitchAccountType Method |
Switches current user's login type.
Namespace:
MattermostDriver
Assembly:
MattermostDriver (in MattermostDriver.dll) Version: 0.0.3.10 (0.0.3.10)
Syntaxpublic string SwitchAccountType(
string current_service,
string new_service,
string email,
string current_password = "",
string new_password = "",
string mfa_code = "",
string ldap_id = ""
)
Public Function SwitchAccountType (
current_service As String,
new_service As String,
email As String,
Optional current_password As String = "",
Optional new_password As String = "",
Optional mfa_code As String = "",
Optional ldap_id As String = ""
) As String
public:
String^ SwitchAccountType(
String^ current_service,
String^ new_service,
String^ email,
String^ current_password = L"",
String^ new_password = L"",
String^ mfa_code = L"",
String^ ldap_id = L""
)
member SwitchAccountType :
current_service : string *
new_service : string *
email : string *
?current_password : string *
?new_password : string *
?mfa_code : string *
?ldap_id : string
(* Defaults:
let _current_password = defaultArg current_password ""
let _new_password = defaultArg new_password ""
let _mfa_code = defaultArg mfa_code ""
let _ldap_id = defaultArg ldap_id ""
*)
-> string
Parameters
- current_service
- Type: SystemString
The current login type. Valid types: email, saml, gitlab, google, office365 - new_service
- Type: SystemString
The new login type. - email
- Type: SystemString
The user's email. - current_password (Optional)
- Type: SystemString
(Optional) The current password. Required when switching from email to oauth, email to ldap, or ldap to email. - new_password (Optional)
- Type: SystemString
(Optional) The new password. Required when switching from oauth to email or ldap to email. - mfa_code (Optional)
- Type: SystemString
(Optional) The multi-factor authentication code. If applicable, required when switching from email to oauth, email to ldap, or ldap to email. - ldap_id (Optional)
- Type: SystemString
(Optional) The LDAP ID. Required when switching from email to ldap.
Return Value
Type:
StringA link that finishes the process when oauth or saml is used.
See Also