GET users/{userIdentifier}/state

Gets the User's state information.

Authorization

Access to this endpoint is granted if all following conditions are true:

  • Authenticated user passes at least one of the following conditions: Authenticated user matches identifier given in "userIdentifier, studentIdentifier" uri parameter. Authenticated user is a staff member and is assigned to the same center as a user who matches identifier given in "userIdentifier, studentIdentifier" uri parameter. Authenticated user is a staff member and is assigned to the online center as a user who matches identifier given in "userIdentifier, studentIdentifier" uri parameter. Authenticated user matches identifier given in "userIdentifier, studentIdentifier" uri parameter.
  • Authenticated user who is either StaffMember, Student, Administrator, ProspectWithTrial, User
  • Authenticated user who is either StaffMember, Student, QA, ISUSTeacher, Administrator, FocusTool, ProspectWithTrial, User

Request Information

URI Parameters

NameDescriptionTypeAdditional information
userIdentifier

user's identifier

PearsonEnglish.LearningServices.Business.Helpers.UserIdentifier

Required

Body Parameters

None.

Response Information

Resource Description

PearsonEnglish.LearningServices.Core.Models.Views.UserStateBackwardCompatibleViewModel
NameDescriptionTypeAdditional information
UserId

globally unique identifier

None.

IsNewUser

boolean

None.

UserName

string

None.

PrivacyPolicyApprove

boolean

None.

ServerTime

date

None.

Registration

PearsonEnglish.LearningServices.Core.Models.Views.RegistrationViewModel

None.

TimeZone

PearsonEnglish.LearningServices.Core.Models.Views.TimeZoneViewModel

None.

Bookmarks

Dictionary of string [key] and PearsonEnglish.LearningServices.Core.Models.Views.ContentItemViewModel [value]

None.

CurrentCourse

PearsonEnglish.LearningServices.Core.Models.CurrentCourse

None.

Lessons

Collection of PearsonEnglish.LearningServices.Core.Models.Views.ContentItemResultViewModel

None.

Surveys

Collection of PearsonEnglish.LearningServices.Core.Models.Views.UserSurveyViewModel

None.

Sessions

Collection of PearsonEnglish.LearningServices.Core.Models.Views.UserSessionStateViewModel

None.

TotalRescheduleCount

integer

None.

StudentLevelInfo

PearsonEnglish.LearningServices.Core.Models.StudentLevelInfo

None.

Response Formats

application/json

Sample:
{
  "UserId": "25a7179f-264d-4e70-82a5-3fffd2d62060",
  "IsNewUser": true,
  "UserName": "sample string 3",
  "PrivacyPolicyApprove": true,
  "ServerTime": "2025-08-29T04:48:44.2638687+00:00",
  "Registration": {
    "Id": "9e45228f-3198-4000-8673-69bc1fb87f6e",
    "UserId": "d20d967c-ab2b-4116-aa9d-57044c3cd7e5",
    "IsCurrent": true,
    "CenterId": "57e72635-7e1a-4c81-af15-e1ecea6bc317",
    "CenterZone": 5,
    "ContractId": "sample string 6",
    "CurrentContentItemId": "d7b0b5a8-3cad-4353-9687-93f1dd6b533a",
    "EndDate": "2025-08-29T04:48:44.2483225+00:00",
    "StartDate": "2025-08-29T04:48:44.2483225+00:00",
    "SchedulePreferenceDate": "2025-08-29T04:48:44.2483225+00:00",
    "TypeName": "sample string 10",
    "WorkbookType": 0,
    "EnglishAnytime": true,
    "AllowSelfBooking": true,
    "RegistrationStatus": "sample string 12",
    "CourseStatus": "sample string 13",
    "StudentCurrentContractStatus": "sample string 14",
    "OnlineClassAccess": true,
    "InCenterClassAccess": true,
    "IsMembership": true,
    "IsPromo": true,
    "OnboardingAccess": true,
    "IsCrossCenterBooking": true,
    "IsTeen": true,
    "IsGroupContract": true,
    "IsB2B": true,
    "ServiceType": 1,
    "LabTeacherReferenceId": "sample string 24",
    "ConsultantReferenceId": "sample string 25"
  },
  "TimeZone": {
    "Name": "sample string 1",
    "IanaName": "sample string 2",
    "LocalUtcOffset": "00:00:00.1234567",
    "LocalDateTime": "2025-08-29T04:48:44.2483225+00:00"
  },
  "Bookmarks": {
    "sample string 1": {
      "Id": "4b6c0de7-3224-441b-8d41-7cb3fe587c88",
      "Description": "sample string 2",
      "Duration": 1,
      "IsSkippable": true,
      "Url": "sample string 3",
      "CourseId": "7ea90b4e-a43a-4754-80dc-1c715d5a37e4",
      "Sequence": 1,
      "AncestorCategoryId": "6d89c59b-cda0-4a26-970f-c4ff8b85e949",
      "TypeId": 5,
      "TypeName": "sample string 6",
      "Hierarchy": [
        {
          "Id": "a9452454-b431-40ea-a653-342e40e47dc7",
          "Type": "sample string 2",
          "Sequence": 1,
          "Path": "sample string 3",
          "Attributes": {
            "sample string 1": "sample string 2",
            "sample string 3": "sample string 4"
          },
          "ChildCategories": []
        },
        {
          "Id": "a9452454-b431-40ea-a653-342e40e47dc7",
          "Type": "sample string 2",
          "Sequence": 1,
          "Path": "sample string 3",
          "Attributes": {
            "sample string 1": "sample string 2",
            "sample string 3": "sample string 4"
          },
          "ChildCategories": []
        }
      ],
      "ContentOptimizationLevelId": 7,
      "ContentOptimizationLevelName": "sample string 8"
    },
    "sample string 2": {
      "Id": "4b6c0de7-3224-441b-8d41-7cb3fe587c88",
      "Description": "sample string 2",
      "Duration": 1,
      "IsSkippable": true,
      "Url": "sample string 3",
      "CourseId": "7ea90b4e-a43a-4754-80dc-1c715d5a37e4",
      "Sequence": 1,
      "AncestorCategoryId": "6d89c59b-cda0-4a26-970f-c4ff8b85e949",
      "TypeId": 5,
      "TypeName": "sample string 6",
      "Hierarchy": [
        {
          "Id": "a9452454-b431-40ea-a653-342e40e47dc7",
          "Type": "sample string 2",
          "Sequence": 1,
          "Path": "sample string 3",
          "Attributes": {
            "sample string 1": "sample string 2",
            "sample string 3": "sample string 4"
          },
          "ChildCategories": []
        },
        {
          "Id": "a9452454-b431-40ea-a653-342e40e47dc7",
          "Type": "sample string 2",
          "Sequence": 1,
          "Path": "sample string 3",
          "Attributes": {
            "sample string 1": "sample string 2",
            "sample string 3": "sample string 4"
          },
          "ChildCategories": []
        }
      ],
      "ContentOptimizationLevelId": 7,
      "ContentOptimizationLevelName": "sample string 8"
    }
  },
  "CurrentCourse": {
    "Id": "06aa1d81-0784-4a08-9839-50808f284e20",
    "CategoryId": "eaedb490-4481-4d77-afb3-c3ae2f050ef6",
    "DisclaimerConfirmed": true
  },
  "Lessons": [
    {
      "Id": "75b72888-fb3a-4ecc-8f4a-8d02b1021e64",
      "Score": 1.0,
      "State": 1
    },
    {
      "Id": "75b72888-fb3a-4ecc-8f4a-8d02b1021e64",
      "Score": 1.0,
      "State": 1
    }
  ],
  "Surveys": [
    {
      "Id": "26ac5db1-5d47-4a23-afba-9d2751f572b9",
      "Questions": [
        {
          "Id": "be5b3988-d2c9-4842-bc1d-65ec15325e98",
          "Answers": "sample string 2"
        },
        {
          "Id": "be5b3988-d2c9-4842-bc1d-65ec15325e98",
          "Answers": "sample string 2"
        }
      ]
    },
    {
      "Id": "26ac5db1-5d47-4a23-afba-9d2751f572b9",
      "Questions": [
        {
          "Id": "be5b3988-d2c9-4842-bc1d-65ec15325e98",
          "Answers": "sample string 2"
        },
        {
          "Id": "be5b3988-d2c9-4842-bc1d-65ec15325e98",
          "Answers": "sample string 2"
        }
      ]
    }
  ],
  "Sessions": [
    {
      "Id": "eb80f87f-7e88-4957-9d34-68608a4b10b7",
      "ContentItemId": "8e5c9e69-265b-4ce9-905b-ab3dad28ffba",
      "Status": "sample string 3",
      "TeacherFeedbacks": [
        {
          "Type": "sample string 1",
          "Value1": "sample string 2",
          "Value2": "sample string 3"
        },
        {
          "Type": "sample string 1",
          "Value1": "sample string 2",
          "Value2": "sample string 3"
        }
      ],
      "RatingDate": "2025-08-29T04:48:44.2638687+00:00",
      "RescheduleDate": "2025-08-29T04:48:44.2638687+00:00"
    },
    {
      "Id": "eb80f87f-7e88-4957-9d34-68608a4b10b7",
      "ContentItemId": "8e5c9e69-265b-4ce9-905b-ab3dad28ffba",
      "Status": "sample string 3",
      "TeacherFeedbacks": [
        {
          "Type": "sample string 1",
          "Value1": "sample string 2",
          "Value2": "sample string 3"
        },
        {
          "Type": "sample string 1",
          "Value1": "sample string 2",
          "Value2": "sample string 3"
        }
      ],
      "RatingDate": "2025-08-29T04:48:44.2638687+00:00",
      "RescheduleDate": "2025-08-29T04:48:44.2638687+00:00"
    }
  ],
  "TotalRescheduleCount": 4,
  "StudentLevelInfo": {
    "StartLevel": "sample string 1",
    "EndLevel": "sample string 2",
    "CurrentLevel": "sample string 3"
  }
}

text/json

Sample:
{
  "UserId": "25a7179f-264d-4e70-82a5-3fffd2d62060",
  "IsNewUser": true,
  "UserName": "sample string 3",
  "PrivacyPolicyApprove": true,
  "ServerTime": "2025-08-29T04:48:44.2951238+00:00",
  "Registration": {
    "Id": "9e45228f-3198-4000-8673-69bc1fb87f6e",
    "UserId": "d20d967c-ab2b-4116-aa9d-57044c3cd7e5",
    "IsCurrent": true,
    "CenterId": "57e72635-7e1a-4c81-af15-e1ecea6bc317",
    "CenterZone": 5,
    "ContractId": "sample string 6",
    "CurrentContentItemId": "d7b0b5a8-3cad-4353-9687-93f1dd6b533a",
    "EndDate": "2025-08-29T04:48:44.2483225+00:00",
    "StartDate": "2025-08-29T04:48:44.2483225+00:00",
    "SchedulePreferenceDate": "2025-08-29T04:48:44.2483225+00:00",
    "TypeName": "sample string 10",
    "WorkbookType": 0,
    "EnglishAnytime": true,
    "AllowSelfBooking": true,
    "RegistrationStatus": "sample string 12",
    "CourseStatus": "sample string 13",
    "StudentCurrentContractStatus": "sample string 14",
    "OnlineClassAccess": true,
    "InCenterClassAccess": true,
    "IsMembership": true,
    "IsPromo": true,
    "OnboardingAccess": true,
    "IsCrossCenterBooking": true,
    "IsTeen": true,
    "IsGroupContract": true,
    "IsB2B": true,
    "ServiceType": 1,
    "LabTeacherReferenceId": "sample string 24",
    "ConsultantReferenceId": "sample string 25"
  },
  "TimeZone": {
    "Name": "sample string 1",
    "IanaName": "sample string 2",
    "LocalUtcOffset": "00:00:00.1234567",
    "LocalDateTime": "2025-08-29T04:48:44.2483225+00:00"
  },
  "Bookmarks": {
    "sample string 1": {
      "Id": "4b6c0de7-3224-441b-8d41-7cb3fe587c88",
      "Description": "sample string 2",
      "Duration": 1,
      "IsSkippable": true,
      "Url": "sample string 3",
      "CourseId": "7ea90b4e-a43a-4754-80dc-1c715d5a37e4",
      "Sequence": 1,
      "AncestorCategoryId": "6d89c59b-cda0-4a26-970f-c4ff8b85e949",
      "TypeId": 5,
      "TypeName": "sample string 6",
      "Hierarchy": [
        {
          "Id": "a9452454-b431-40ea-a653-342e40e47dc7",
          "Type": "sample string 2",
          "Sequence": 1,
          "Path": "sample string 3",
          "Attributes": {
            "sample string 1": "sample string 2",
            "sample string 3": "sample string 4"
          },
          "ChildCategories": []
        },
        {
          "Id": "a9452454-b431-40ea-a653-342e40e47dc7",
          "Type": "sample string 2",
          "Sequence": 1,
          "Path": "sample string 3",
          "Attributes": {
            "sample string 1": "sample string 2",
            "sample string 3": "sample string 4"
          },
          "ChildCategories": []
        }
      ],
      "ContentOptimizationLevelId": 7,
      "ContentOptimizationLevelName": "sample string 8"
    },
    "sample string 2": {
      "Id": "4b6c0de7-3224-441b-8d41-7cb3fe587c88",
      "Description": "sample string 2",
      "Duration": 1,
      "IsSkippable": true,
      "Url": "sample string 3",
      "CourseId": "7ea90b4e-a43a-4754-80dc-1c715d5a37e4",
      "Sequence": 1,
      "AncestorCategoryId": "6d89c59b-cda0-4a26-970f-c4ff8b85e949",
      "TypeId": 5,
      "TypeName": "sample string 6",
      "Hierarchy": [
        {
          "Id": "a9452454-b431-40ea-a653-342e40e47dc7",
          "Type": "sample string 2",
          "Sequence": 1,
          "Path": "sample string 3",
          "Attributes": {
            "sample string 1": "sample string 2",
            "sample string 3": "sample string 4"
          },
          "ChildCategories": []
        },
        {
          "Id": "a9452454-b431-40ea-a653-342e40e47dc7",
          "Type": "sample string 2",
          "Sequence": 1,
          "Path": "sample string 3",
          "Attributes": {
            "sample string 1": "sample string 2",
            "sample string 3": "sample string 4"
          },
          "ChildCategories": []
        }
      ],
      "ContentOptimizationLevelId": 7,
      "ContentOptimizationLevelName": "sample string 8"
    }
  },
  "CurrentCourse": {
    "Id": "06aa1d81-0784-4a08-9839-50808f284e20",
    "CategoryId": "eaedb490-4481-4d77-afb3-c3ae2f050ef6",
    "DisclaimerConfirmed": true
  },
  "Lessons": [
    {
      "Id": "75b72888-fb3a-4ecc-8f4a-8d02b1021e64",
      "Score": 1.0,
      "State": 1
    },
    {
      "Id": "75b72888-fb3a-4ecc-8f4a-8d02b1021e64",
      "Score": 1.0,
      "State": 1
    }
  ],
  "Surveys": [
    {
      "Id": "26ac5db1-5d47-4a23-afba-9d2751f572b9",
      "Questions": [
        {
          "Id": "be5b3988-d2c9-4842-bc1d-65ec15325e98",
          "Answers": "sample string 2"
        },
        {
          "Id": "be5b3988-d2c9-4842-bc1d-65ec15325e98",
          "Answers": "sample string 2"
        }
      ]
    },
    {
      "Id": "26ac5db1-5d47-4a23-afba-9d2751f572b9",
      "Questions": [
        {
          "Id": "be5b3988-d2c9-4842-bc1d-65ec15325e98",
          "Answers": "sample string 2"
        },
        {
          "Id": "be5b3988-d2c9-4842-bc1d-65ec15325e98",
          "Answers": "sample string 2"
        }
      ]
    }
  ],
  "Sessions": [
    {
      "Id": "eb80f87f-7e88-4957-9d34-68608a4b10b7",
      "ContentItemId": "8e5c9e69-265b-4ce9-905b-ab3dad28ffba",
      "Status": "sample string 3",
      "TeacherFeedbacks": [
        {
          "Type": "sample string 1",
          "Value1": "sample string 2",
          "Value2": "sample string 3"
        },
        {
          "Type": "sample string 1",
          "Value1": "sample string 2",
          "Value2": "sample string 3"
        }
      ],
      "RatingDate": "2025-08-29T04:48:44.2638687+00:00",
      "RescheduleDate": "2025-08-29T04:48:44.2638687+00:00"
    },
    {
      "Id": "eb80f87f-7e88-4957-9d34-68608a4b10b7",
      "ContentItemId": "8e5c9e69-265b-4ce9-905b-ab3dad28ffba",
      "Status": "sample string 3",
      "TeacherFeedbacks": [
        {
          "Type": "sample string 1",
          "Value1": "sample string 2",
          "Value2": "sample string 3"
        },
        {
          "Type": "sample string 1",
          "Value1": "sample string 2",
          "Value2": "sample string 3"
        }
      ],
      "RatingDate": "2025-08-29T04:48:44.2638687+00:00",
      "RescheduleDate": "2025-08-29T04:48:44.2638687+00:00"
    }
  ],
  "TotalRescheduleCount": 4,
  "StudentLevelInfo": {
    "StartLevel": "sample string 1",
    "EndLevel": "sample string 2",
    "CurrentLevel": "sample string 3"
  }
}