User Roles
What is a User Role?
User roles on Socratease are used to determine:
- The default route to take your user: For example, if you initialize the Socratease library with role='admin', and didn't pass a url key, the user will be taken to yourwebsite.com/learning/admin.
- Functionality: For example, if role='student', the user will not be able to create their own content.
Types of Roles
User roles on Socratease are enums. The different roles are:
role_name | Description | Default Path | Path restricted to |
|---|---|---|---|
user | The default role | /content/home | - |
ca | Content Admin. For creating/managing content | /cms/home | - |
teacher | For creating and managing classrooms | /teacher/home | |
org_admin | Organisation Admin, someone who is the admin of Schools/Companies, etc | /org-admin/home | Org Admin |
student | For accessing classroom content | /student/home | |
admin | Manage your entire property. Set other users' roles, add organizations, view analytics, etc | /admin/home | Super Admins |