Export Users using Filters

We need to revamp the user modules completely and user customizations and want to export users in LMS using Filters. Can we have a full code documentation or solution for the LMS regarding the following filter functionalities: a) Filter User List by Date Range b) Export all users from the list c) Percentage of Videos Viewed d) Export all users on basis of: a. Roles b. Specific Quiz or Test Attempted c. Chatbot Subscribers d. Certificates Issued e. Quizzes Passed or Attempted