updateUserAuthWithHttpInfo method
Update a user's authentication method
Updates a user's authentication method. This can be used to change them to/from LDAP authentication for example. Minimum server version: 4.6 ##### Permissions Must have the edit_other_users
permission.
Note: This method returns the HTTP Response
.
Parameters:
-
String userId (required): User GUID
-
MmUserAuthData mmUserAuthData (required):
Implementation
Future<Response> updateUserAuthWithHttpInfo(
String userId,
MmUserAuthData mmUserAuthData,
) async {
// ignore: prefer_const_declarations
final path = r'/users/{user_id}/auth'.replaceAll('{user_id}', userId);
// ignore: prefer_final_locals
Object? postBody = mmUserAuthData;
final queryParams = <MmQueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'PUT',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}