/// <summary> /// Returns a page of the user-folder assignments for the input user, including /// the roles for each folder. /// The response also includes the folders assigned to the directory groups of /// the user. /// The distinction between the folders assigned directly to the user and the /// ones assigned to one of his groups /// can be made via the User field of the response. /// </summary> /// <remarks> /// Required permissions: (Units.View or SubFolders.View) and (Users.View and /// Roles.View). /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='username'> /// User name /// </param> /// <param name='skip'> /// </param> /// <param name='take'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <UserRoleAssignmentsDto> GetAllRolesForUserByUsernameAndSkipAndTakeAsync(this IFolders operations, string username, int skip, int take, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { using (var _result = await operations.GetAllRolesForUserByUsernameAndSkipAndTakeWithHttpMessagesAsync(username, skip, take, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }