users

GET `/api/v0/main-frontend/users/:id/roles` - All roles held by a user, across scopes. Teacher/admin (global) view; used to label the account (e.g. staff/teacher) on the user-details page.

Changed on
get/api/v0/main-frontend/users/{user_id}/roles

Request

  • The document declares no server URL.
  • Auth: none declared

Path parameters

user_idstring uuid required

User id

Response

User roles across scopes

course_idstring uuid nullable
course_instance_idstring uuid nullable
exam_idstring uuid nullable
is_globalboolean required
organization_idstring uuid nullable
role'Reviewer' | 'Assistant' | 'Teacher' | 'Admin' | 'CourseOrExamCreator' | 'MaterialViewer' | 'TeachingAndLearningServices' | 'StatsViewer' | 'CreditRegistrationAdmin' required
user_idstring uuid required

Changes