resetSamlAuthDataToEmail method
Future<MmResetSamlAuthDataToEmail200Response?>
resetSamlAuthDataToEmail({
- MmResetSamlAuthDataToEmailRequest? mmResetSamlAuthDataToEmailRequest,
Reset AuthData to Email
Reset the AuthData field of SAML users to their email. This is meant to be used when the "id" attribute is set to an empty value ("") from a previously non-empty value. Minimum server version: 5.35 ##### Permissions Must have manage_system
permission.
Parameters:
- MmResetSamlAuthDataToEmailRequest mmResetSamlAuthDataToEmailRequest:
Implementation
Future<MmResetSamlAuthDataToEmail200Response?> resetSamlAuthDataToEmail({
MmResetSamlAuthDataToEmailRequest? mmResetSamlAuthDataToEmailRequest,
}) async {
final response = await resetSamlAuthDataToEmailWithHttpInfo(
mmResetSamlAuthDataToEmailRequest: mmResetSamlAuthDataToEmailRequest,
);
if (response.statusCode >= HttpStatus.badRequest) {
throw MmApiException(response.statusCode, await _decodeBodyBytes(response));
}
// When a remote server returns no body with a status of 204, we shall not decode it.
// At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
// FormatException when trying to decode an empty string.
if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
return await apiClient.deserializeAsync(
await _decodeBodyBytes(response),
'MmResetSamlAuthDataToEmail200Response',
) as MmResetSamlAuthDataToEmail200Response;
}
return null;
}