migrateAuthToSamlWithHttpInfo method

Future<Response> migrateAuthToSamlWithHttpInfo({
  1. MmMigrateAuthToSamlRequest? mmMigrateAuthToSamlRequest,
})

Migrate user accounts authentication type to SAML.

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

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> migrateAuthToSamlWithHttpInfo({
  MmMigrateAuthToSamlRequest? mmMigrateAuthToSamlRequest,
}) async {
  // ignore: prefer_const_declarations
  final path = r'/users/migrate_auth/saml';

  // ignore: prefer_final_locals
  Object? postBody = mmMigrateAuthToSamlRequest;

  final queryParams = <MmQueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>['application/json'];

  return apiClient.invokeAPI(
    path,
    'POST',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}