1. Account
E-Learning
  • Auth
    • Register
      POST
    • Confirm Email
      POST
    • Resend Confirmation Email
      POST
    • Login
      POST
    • Google Login
      GET
    • Google Login By Id Token
      POST
    • Forget Password
      POST
    • Reset Password
      POST
    • Refresh Token
      POST
    • Revoke Refresh Token
      POST
  • Account
    • Get User
      GET
    • Update User
      PUT
    • Delete User
      DELETE
    • Change Password
      PUT
    • Uploade User Image
      POST
    • Delete User Image
      DELETE
    • Become Instructor
      POST
    • Get Users To Admin
      GET
    • Delete User By Admin
      DELETE
    • Add User To Role
      POST
    • Remove User From Role
      DELETE
    • Get instructor Requests
      GET
    • Approve Instructor Request
      PATCH
    • Reject Instructor Request
      PATCH
  • Course
    • Anonymous
      • Get All Courses
      • Get Course By Id
    • Instructor
      • Get Instructor Courses
      • Get Instructor Course By Id
      • Create Course
      • Publish Course
      • Unpublish Course
      • Update Course Info
      • Delete Course
      • Add Thumbnail
      • Delete Thumbnail
    • Admin
      • Get All Courses To Admin
      • Get Course By Id To Admin
      • Delete Course By Admin
      • Restore Soft Deleted Course By Admin
  • Chapter
    • Anonymous
      • Get All Course Chapters
      • Get Chapter
    • Instructor
      • Get All Chapters To Instructor
      • Get Chapter To Instructor
      • Create Chapter
      • Update Chapter
      • Reorder All Chapters
      • Delete Chapter
      • Add Chapter Image
      • Delete Chapter Image
    • Admin
      • Get All Chapters To Admin
      • Get Chapter To Admin
  • Lesson
    • Anonymous
      • Get All Lessons
      • Get Lesson
    • Instructor
      • Get All Lessons To Instructor
      • Get Lesson To Instructor
      • Create Lesson In Chapter
      • Upload Lesson Video
      • Delete Lesson Video
      • Update Lesson
      • Delete Lesson
      • Reorder All Lessons in Chapter
    • Admin
      • Get All Lessons To Admin
      • Get Lesson To Admin
  • Cart
    • Get Cart For User
    • Add Course In Cart
    • Delete Item From User Cart
  • Payment
    • Create Payment Intention
    • Get Payment History
  • Enrollment
    • Enrolle In Course
    • Unenroll From Course
    • Get Enrolled Course Details
    • Get Student Courses
    • Get Enrolled Students in Course
  • Learn
    • Get Student Course Learn
    • Mark Lesson Complete
  • Quiz
    • Create Quiz
    • Get Quiz
    • Update Quiz Info
    • Delete Quiz
    • Active Quiz
    • Deactive Quiz
  • Question
    • Question Types
    • Create Question
    • Get Question
    • Update Question
    • Delete Question
    • Reorder Questions
  • Quiz Attempt
    • Start Quiz Attempt
    • Get Active Quiz Attempt
    • Submit Quiz Attempt
    • Get Quiz Attempt Result
    • Get Quiz Attempts History
  1. Account

Get Users To Admin

GET
http://e-learning-platform.tryasp.net/api/admin/account/users
Admin

Admins Only#

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Query Params

Responses

🟢200Success
application/json
Bodyapplication/json

Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'http://e-learning-platform.tryasp.net/api/admin/account/users?pageSize=10&pageNumber=1&sortBy=email&sortDirection=Ascending%20' \
--header 'Authorization: Bearer <token>'
Response Response Example
{
    "pageNumber": 1,
    "pageSize": 10,
    "totalCount": 9,
    "data": [
        {
            "id": "0dc06360-4c20-4d13-a95f-7d81c78c1fa9",
            "email": "abdalrhmangamel681@gmail.com",
            "userName": "abdalrhmangamel681",
            "firstName": "Abdalrhman",
            "lastName": "Gamal",
            "phoneNumber": null,
            "imageUrl": "https://localhost:7023/profiles/c3ab42d2-9a5b-4515-9b5f-be56685db000.jpeg",
            "qualifications": null,
            "introductionBrief": null,
            "roles": [
                "Student"
            ],
            "createdCourses": 0,
            "enrolledCourses": 0,
            "isDeleted": false
        },
        {
            "id": "127004f5-715b-40eb-af82-46accdede870",
            "email": "admin@gmail.com",
            "userName": "admin",
            "firstName": "Administrator",
            "lastName": "Admin",
            "phoneNumber": null,
            "imageUrl": null,
            "qualifications": null,
            "introductionBrief": null,
            "roles": [
                "Admin"
            ],
            "createdCourses": 0,
            "enrolledCourses": 0,
            "isDeleted": false
        },
        {
            "id": "4a13cda7-732c-4936-82bc-e72448d56d14",
            "email": "ahmed.instructor@gmail.com",
            "userName": "instructor_ahmed",
            "firstName": "Ahmed",
            "lastName": "Hassan",
            "phoneNumber": null,
            "imageUrl": null,
            "qualifications": "PhD in Computer Science, 10+ years of teaching experience",
            "introductionBrief": "Passionate software engineer and educator specializing in backend development and system design.",
            "roles": [
                "Instructor"
            ],
            "createdCourses": 1,
            "enrolledCourses": 0,
            "isDeleted": false
        },
        {
            "id": "a0c74ab0-f949-4e5a-861c-8dce0a28c0f0",
            "email": "ali.student@gmail.com",
            "userName": "student_ali",
            "firstName": "Ali",
            "lastName": "Mohamed",
            "phoneNumber": null,
            "imageUrl": null,
            "qualifications": null,
            "introductionBrief": null,
            "roles": [
                "Student"
            ],
            "createdCourses": 0,
            "enrolledCourses": 0,
            "isDeleted": false
        },
        {
            "id": "3479a9bb-0855-4679-a68d-1872513a182a",
            "email": "khaled.student@gmail.com",
            "userName": "student_khaled",
            "firstName": "Khaled",
            "lastName": "Sayed",
            "phoneNumber": null,
            "imageUrl": null,
            "qualifications": null,
            "introductionBrief": null,
            "roles": [
                "Student"
            ],
            "createdCourses": 0,
            "enrolledCourses": 0,
            "isDeleted": false
        },
        {
            "id": "6cf323f8-c9ca-478f-ae54-56fb9ff1c183",
            "email": "mona.student@gmail.com",
            "userName": "student_mona",
            "firstName": "Mona",
            "lastName": "Tarek",
            "phoneNumber": null,
            "imageUrl": null,
            "qualifications": null,
            "introductionBrief": null,
            "roles": [
                "Student"
            ],
            "createdCourses": 0,
            "enrolledCourses": 0,
            "isDeleted": false
        },
        {
            "id": "f1dc6420-b530-41b6-a26e-d72c8c705fbc",
            "email": "nour.student@gmail.com",
            "userName": "student_nour",
            "firstName": "Nour",
            "lastName": "Ibrahim",
            "phoneNumber": null,
            "imageUrl": null,
            "qualifications": null,
            "introductionBrief": null,
            "roles": [
                "Student"
            ],
            "createdCourses": 0,
            "enrolledCourses": 0,
            "isDeleted": false
        },
        {
            "id": "ca91cddd-89ea-449b-ab69-cc54df47d967",
            "email": "omar.instructor@gmail.com",
            "userName": "instructor_omar",
            "firstName": "Omar",
            "lastName": "Farouk",
            "phoneNumber": null,
            "imageUrl": null,
            "qualifications": "BSc Computer Engineering, AWS Certified Solutions Architect",
            "introductionBrief": "Cloud and DevOps engineer helping developers ship faster and more reliably.",
            "roles": [
                "Instructor"
            ],
            "createdCourses": 1,
            "enrolledCourses": 0,
            "isDeleted": false
        },
        {
            "id": "128611fd-f79f-4676-b30a-6f05238832b0",
            "email": "sara.instructor@gmail.com",
            "userName": "instructor_sara",
            "firstName": "Sara",
            "lastName": "Khalil",
            "phoneNumber": null,
            "imageUrl": null,
            "qualifications": "MSc in Software Engineering, Microsoft Certified Trainer",
            "introductionBrief": "Frontend specialist with deep expertise in Angular and modern web technologies.",
            "roles": [
                "Instructor"
            ],
            "createdCourses": 1,
            "enrolledCourses": 0,
            "isDeleted": false
        }
    ]
}
Modified at 2026-07-20 15:13:26
Previous
Become Instructor
Next
Delete User By Admin
Built with