Click or drag to resize

ClientSwitchAccountType Method

Switches current user's login type.

Namespace:  MattermostDriver
Assembly:  MattermostDriver (in MattermostDriver.dll) Version: 0.0.3.10 (0.0.3.10)
Syntax
public string SwitchAccountType(
	string current_service,
	string new_service,
	string email,
	string current_password = "",
	string new_password = "",
	string mfa_code = "",
	string ldap_id = ""
)

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: String
A link that finishes the process when oauth or saml is used.
See Also