POST api/StudentServices/GetSignOnInfoByStudentId

Returns the Sign On information for an existing GMetrix student ID

Request Information

URI Parameters

None.

Body Parameters

GetSignOnInfoByStudentIdPost
NameDescriptionTypeAdditional information
StudentId

The Student ID of an existing GMetrix student, returned by other endpoints, optional for the Create endpoint

integer

None.

Username

string

None.

AccessCode

string

None.

ReferenceInfo

contains information to pass to the student portal to determine where to send the student after log on.

string

None.

Claims

Collection of Pair of string [key] and string [value]

None.

Key

Key to Access API provided by GMetrix

string

None.

Request Formats

application/json, text/json

Sample:
{
  "StudentId": 1,
  "Username": "sample string 2",
  "AccessCode": "sample string 3",
  "ReferenceInfo": "sample string 4",
  "Claims": [
    {
      "Key": "sample string 1",
      "Value": "sample string 2"
    },
    {
      "Key": "sample string 1",
      "Value": "sample string 2"
    }
  ],
  "Key": "sample string 5"
}

application/xml, text/xml

Sample:
<GetSignOnInfoByStudentIdPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ManagementServicesApi.Models">
  <Key>sample string 5</Key>
  <AccessCode>sample string 3</AccessCode>
  <Claims xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic">
    <d2p1:KeyValuePairOfstringstring>
      <d2p1:key>sample string 1</d2p1:key>
      <d2p1:value>sample string 2</d2p1:value>
    </d2p1:KeyValuePairOfstringstring>
    <d2p1:KeyValuePairOfstringstring>
      <d2p1:key>sample string 1</d2p1:key>
      <d2p1:value>sample string 2</d2p1:value>
    </d2p1:KeyValuePairOfstringstring>
  </Claims>
  <ReferenceInfo>sample string 4</ReferenceInfo>
  <StudentId>1</StudentId>
  <Username>sample string 2</Username>
</GetSignOnInfoByStudentIdPost>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

StudentSuccess
NameDescriptionTypeAdditional information
StudentId

integer

None.

StudentPortalSingleSignOnURL

string

None.

CourseName

string

None.

FirstName

string

None.

LastName

string

None.

ASPNetUserID

globally unique identifier

None.

UserName

string

None.

CourseID

integer

None.

CourseVendor

string

None.

CourseType

string

None.

CourseControl

string

None.

CourseTypeID

byte

None.

CourseStudentID

integer

None.

Progress

decimal number

None.

SecondsSpent

integer

None.

HMSTimeSpent

string

None.

EnrollmentDate

date

None.

StartDate

date

None.

DueDate

date

None.

ExpirationDate

date

None.

CompletionDate

date

None.

Successful

boolean

None.

MsgSuccess

string

None.

Response Formats

application/json, text/json

Sample:
{
  "StudentId": 1,
  "StudentPortalSingleSignOnURL": "sample string 2",
  "CourseName": "sample string 3",
  "FirstName": "sample string 4",
  "LastName": "sample string 5",
  "ASPNetUserID": "c731f26f-d57f-4879-ab83-7110be32bdf0",
  "UserName": "sample string 7",
  "CourseID": 8,
  "CourseVendor": "sample string 9",
  "CourseType": "sample string 10",
  "CourseControl": "sample string 11",
  "CourseTypeID": 64,
  "CourseStudentID": 1,
  "Progress": 1.1,
  "SecondsSpent": 1,
  "HMSTimeSpent": "sample string 13",
  "EnrollmentDate": "2025-05-08T20:28:26.8761691-07:00",
  "StartDate": "2025-05-08T20:28:26.8761691-07:00",
  "DueDate": "2025-05-08T20:28:26.8761691-07:00",
  "ExpirationDate": "2025-05-08T20:28:26.8761691-07:00",
  "CompletionDate": "2025-05-08T20:28:26.8761691-07:00",
  "Successful": true,
  "MsgSuccess": "sample string 17"
}

application/xml, text/xml

Sample:
<StudentSuccess xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ManagementServices.Repositories.Response">
  <MsgSuccess>sample string 17</MsgSuccess>
  <Successful>true</Successful>
  <ASPNetUserID>c731f26f-d57f-4879-ab83-7110be32bdf0</ASPNetUserID>
  <CompletionDate>2025-05-08T20:28:26.8761691-07:00</CompletionDate>
  <CourseControl>sample string 11</CourseControl>
  <CourseID>8</CourseID>
  <CourseName>sample string 3</CourseName>
  <CourseStudentID>1</CourseStudentID>
  <CourseType>sample string 10</CourseType>
  <CourseTypeID>64</CourseTypeID>
  <CourseVendor>sample string 9</CourseVendor>
  <DueDate>2025-05-08T20:28:26.8761691-07:00</DueDate>
  <EnrollmentDate>2025-05-08T20:28:26.8761691-07:00</EnrollmentDate>
  <ExpirationDate>2025-05-08T20:28:26.8761691-07:00</ExpirationDate>
  <FirstName>sample string 4</FirstName>
  <HMSTimeSpent>sample string 13</HMSTimeSpent>
  <LastName>sample string 5</LastName>
  <Progress>1.1</Progress>
  <SecondsSpent>1</SecondsSpent>
  <StartDate>2025-05-08T20:28:26.8761691-07:00</StartDate>
  <StudentId>1</StudentId>
  <StudentPortalSingleSignOnURL>sample string 2</StudentPortalSingleSignOnURL>
  <UserName>sample string 7</UserName>
</StudentSuccess>