Skip to content

Roles

Every user is associated with a collection of permissions called roles. Every user is associated with a role; each role contains a list of permissions that allow users to do certain actions on the system.

Field Name Description Type
id ID The Schoology ID of the role. string
title* Role Name The title of the role. string
faculty* Faculty Whether or not the role is a faculty role. Valid values: 0 (no), 1 (yes). integer {0,1}
role_type* Role Type The level type of the role. Valid values: 1 for organization roles and 2 for building roles (a.k.a. school override roles). integer {1,2}
links Links Link relations for the role object (for example, self). object

* = Required

View a list of roles in your school. If your school has the school override role feature enabled and contains school level overrides (i.e. role_type = 1), they will be returned in their own array called building_role.

{
"role": [
{
"id": "1215",
"title": "Parent",
"faculty": 0,
"role_type": 1,
"links": {
"self": "http:\/\/..."
}
},
{
"id": "1212",
"title": "School Admin",
"faculty": 1,
"role_type": 1,
"links": {
"self": "http:\/\/..."
}
},
{
"id": "1214",
"title": "Student",
"faculty": 0,
"role_type": 1,
"links": {
"self": "http:\/\/..."
}
},
{
"id": "1213",
"title": "Teacher",
"faculty": 1,
"role_type": 1,
"links": {
"self": "http:\/\/..."
}
}
],
"building_role": [
{
"id": "1216",
"title": "Override Role",
"faculty": 0,
"role_type": 2,
"links": {
"self": "http:\/\/..."
}
}
]
}

View a specified role

Return A role

{
"id": "1213",
"title": "Teacher",
"faculty": 1,
"role_type": 1
}