/// <summary> /// Update entity in users /// </summary> /// <remarks> /// Represents an Azure Active Directory user object. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='userId'> /// key: id of user /// </param> /// <param name='body'> /// New property values /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task UpdateUserAsync(this IUsersOperations operations, string userId, MicrosoftGraphUser body, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.UpdateUserWithHttpMessagesAsync(userId, body, null, cancellationToken).ConfigureAwait(false)).Dispose(); }