syncLdapWithHttpInfo method

Future<Response> syncLdapWithHttpInfo()

Sync with LDAP

Synchronize any user attribute changes in the configured AD/LDAP server with Mattermost. ##### Permissions Must have manage_system permission.

Note: This method returns the HTTP Response.

Implementation

Future<Response> syncLdapWithHttpInfo() async {
  // ignore: prefer_const_declarations
  final path = r'/ldap/sync';

  // ignore: prefer_final_locals
  Object? postBody;

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

  const contentTypes = <String>[];

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