migrateAuthToLdap method

Future<void> migrateAuthToLdap({
  1. MmMigrateAuthToLdapRequest? mmMigrateAuthToLdapRequest,
})

Migrate user accounts authentication type to LDAP.

Migrates accounts from one authentication provider to another. For example, you can upgrade your authentication provider from email to LDAP. Minimum server version: 5.28 ##### Permissions Must have manage_system permission.

Parameters:

Implementation

Future<void> migrateAuthToLdap({
  MmMigrateAuthToLdapRequest? mmMigrateAuthToLdapRequest,
}) async {
  final response = await migrateAuthToLdapWithHttpInfo(
    mmMigrateAuthToLdapRequest: mmMigrateAuthToLdapRequest,
  );
  if (response.statusCode >= HttpStatus.badRequest) {
    throw MmApiException(response.statusCode, await _decodeBodyBytes(response));
  }
}