You are currently viewing 'Get User Access ' page



Usage

GET /Auth/Access/:UserID

Content-Type

application/json

Description

Returns a list of schools/sports the supplied UserID has access to.

Note

Put the access token generated from the User Login endpoint in the request header field "Authorization" as "bearer ACCESS_TOKEN_HERE".

Example

Type Name Required Note
URL UserID YES User ID of user logged in

Sample response:

[

{
"districtID": "a0a4767a-8fa3-4b52-abd5-1124af60581a",
"firstName": "Caleb",
"lastName": "Hanson",
"address": "",
"city": "",
"state": "",
"officePhone": "",
"officeExt": "",
"cellPhone": "",
"homePhone": "",
"userName": "",
"accessLevel": (See Access Level),
"schools": [
{
"schoolID": "72971e0d-1e30-4fa4-a7f4-3c6124f42d7c",
"schoolName": "School 1 High School",
"schoolType": "High School",
"Sports": [
{
"ID": 69,
"name": "Academic Team",
"gender": "M"
},
{
"ID": 53,
"name": "Athletic Trainer",
"gender": "M"
},
{
"ID": 17,
"name": "Baseball",
"gender": "M"
},
{
"ID": 7,
"name": "Basketball",
"gender": "M"
},
{
"ID": 1,
"name": "Cross Country",
"gender": "M"
},
{
"ID": 71,
"name": "Drama",
"gender": "M"
},
{
"ID": 3,
"name": "Football",
"gender": "M"
},
{
"ID": 18,
"name": "Golf",
"gender": "M"
},
{
"ID": 79,
"name": "Other",
"gender": "M"
},
{
"ID": 23,
"name": "Track & Field",
"gender": "M"
},
{
"ID": 70,
"name": "Academic Team",
"gender": "F"
},
{
"ID": 54,
"name": "Athletic Trainer",
"gender": "F"
},
{
"ID": 26,
"name": "Basketball",
"gender": "F"
},
{
"ID": 177,
"name": "Cycling ",
"gender": "F"
},
{
"ID": 95,
"name": "Football",
"gender": "F"
},
{
"ID": 34,
"name": "Golf",
"gender": "F"
},
{
"ID": 81,
"name": "Other",
"gender": "F"
},
{
"ID": 21,
"name": "Softball",
"gender": "F"
},
{
"ID": 37,
"name": "Track & Field",
"gender": "F"
},
{
"ID": 5,
"name": "Volleyball",
"gender": "F"
},
{
"ID": 186,
"name": "Swimming & Diving",
"gender": "C"
},
{
"ID": 181,
"name": "Tennis",
"gender": "C"
},
{
"ID": 182,
"name": "Tennis Fall",
"gender": "C"
},
{
"ID": 183,
"name": "Tennis Spring",
"gender": "C"
}
]
},
{
"schoolID": "d94f84f6-ae4b-4ba0-91f3-e5a6770272c1",
"schoolName": "School 2 Middle School",
"schoolType": "Middle School",
"sports": [
{
"ID": 7,
"name": "Basketball",
"gender": "M"
},
{
"ID": 3,
"name": "Football",
"gender": "M"
},
{
"ID": 23,
"name": "Track & Field",
"gender": "M"
},
{
"ID": 26,
"name": "Basketball",
"gender": "F"
},
{
"ID": 37,
"name": "Track & Field",
"gender": "F"
},
{
"ID": 5,
"name": "Volleyball",
"gender": "F"
},
}
]
},
...
]

Access Levels

Value
Description
0
Parent Account
1
Athletic Director
2
Assistant Athletic Director
3
Administrator
4
Athletic Trainer
5
Head Coach
6
Assistant Coach
7
Secretary
8
Director
9
Read Only
10
Stadium Manager