---
title: User Roles
slug: infra/user-roles
createdAt: 2021-08-20T15:21:47.000Z
---

## What is a User Role?

User roles on Socratease are used to determine:

1. 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](yourwebsite.com/learning/admin).
2. 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 `enum`s. 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       |

