Skip to main content

User Routes

GET /api/user

Gets a user object based on partial or full name/jhed query (case insensitive) and/or affiliation (refer to affiliation type).

NameTypeDescription
QueryusernameStringpartial or full user name or JHED
affiliationStringaffiliation of user
Outputmodified_user[]Array of users without the sensitive plan_ids field.
People with this route should not have access to a user's sensitive information.

Sample Output

[
{
"_id": "freshmanDev",
"name": "Freshman Dev",
"email": "fakeremail@gmail.com",
"affiliation": "STUDENT",
"school": "Whiting School of Engineering",
"grade": "AE UG Freshman"
},
{
"_id": "FreshmanDev",
"name": "FreshmanDev",
"email": "FreshmanDev@fakeemail.com",
"affiliation": "STAFF",
"school": "jooby hooby",
"grade": "AE UG Freshman"
}
]