/// <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> public static UserRoleAssignmentsDto GetAllRolesForUserByUsernameAndSkipAndTake(this IFolders operations, string username, int skip, int take) { return(operations.GetAllRolesForUserByUsernameAndSkipAndTakeAsync(username, skip, take).GetAwaiter().GetResult()); }
/// <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. /// LIMITATION: If URI parameters contain special characters (eg. \, /), use /// instead api/FoldersNavigation/GetAllRolesForUser endpoint. /// </summary> /// <remarks> /// Client Credentials Flow required permissions: Folders or Folders.Read. /// /// Required permissions: (Units.View - Gets roles from all folders) and /// (SubFolders.View - Gets roles only from folders where caller has /// SubFolders.View permission) 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='expand'> /// Indicates the related entities to be represented inline. The maximum depth /// is 2. /// </param> /// <param name='select'> /// Limits the properties returned in the result. /// </param> public static UserRoleAssignmentsDto GetAllRolesForUserByUsernameAndSkipAndTake(this IFolders operations, string username, int skip, int take, string expand = default(string), string select = default(string)) { return(operations.GetAllRolesForUserByUsernameAndSkipAndTakeAsync(username, skip, take, expand, select).GetAwaiter().GetResult()); }