/// <summary> /// Deletes the specified user permissions from the specified workspace. /// </summary> /// <remarks> /// <br/>**Required scope**: Workspace.ReadWrite.All<br/>To set the /// permissions scope, see [Register an /// app](https://docs.microsoft.com/power-bi/developer/register-app). /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='groupId'> /// The workspace id /// </param> /// <param name='user'> /// The email address of the user or the service principal object id to delete /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task DeleteUserInGroupAsync(this IGroupsOperations operations, System.Guid groupId, string user, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.DeleteUserInGroupWithHttpMessagesAsync(groupId, user, null, cancellationToken).ConfigureAwait(false)).Dispose(); }