# Project controller (/project) - Users
The project controller contains many endpoints related to projects, which is where all data is stored. The endpoints are divided in five groups:
General
Get information about available projects and tables within projects, and run a basic check of access and system status.Users
Manage users that are members of a project.Read
Read user data from tables.Write
Create, update or delete user data in tables.Watch
Watch for changes of user data in tables, and for changes of project members.
# All project endpoints
Below are all endpoints in the entire project controller in alphabetical order. Endpoints in the current group are in bold.
/project/list (GET)
/project/list/all (GET)
/project/{project}/check (GET)
/project/{project}/subjects/watch/register (POST)
/project/{project}/subjects/watch/unregister/{id} (POST)
/project/{project}/subjects/watch/{id} (GET)
/project/{project}/table/{table} (GET)
/project/{project}/table/{table} (POST)
/project/{project}/table/{table} (DELETE)
/project/{project}/table/{table}/filter/delete (POST)
/project/{project}/table/{table}/filter/get (POST)
/project/{project}/table/{table}/filter/get/first (POST)
/project/{project}/table/{table}/filter/get/last (POST)
/project/{project}/table/{table}/first (GET)
/project/{project}/table/{table}/last (GET)
/project/{project}/table/{table}/purge (DELETE)
/project/{project}/table/{table}/spec (GET)
/project/{project}/table/{table}/watch/register (POST)
/project/{project}/table/{table}/watch/unregister/{id} (POST)
/project/{project}/table/{table}/watch/{id} (GET)
/project/{project}/table/{table}/{recordId} (GET)
/project/{project}/table/{table}/{recordId} (PUT)
/project/{project}/table/{table}/{recordId} (DELETE)
/project/{project}/tables (GET)
/project/{project}/user (POST)
/project/{project}/user (DELETE)
/project/{project}/users (GET)
# /{project}/user (POST)
Patients can only add themselves to a project.
Professionals can add any user to whom they were granted access, including themselves. They can only add other users to a project that they can access themselves.
Admins can add any user to any project.
POST https://www.example.com/servlets/senseeact/v6.1.0/project/default/user X-Auth-Token: ... Content-Type: application/x-www-form-urlencoded user=b43f784d76c44e7a9ae0370b91521753&asRole=PATIENT
–
# /{project}/user (DELETE)
Patients can only remove themselves from a project.
Professionals can remove any user to whom they were granted access, including themselves. They can only remove other users from a project that they can access themselves.
Admins can remove any user from any project.
DELETE https://www.example.com/servlets/senseeact/v6.1.0/project/default/user X-Auth-Token: ... Content-Type: application/x-www-form-urlencoded user=b43f784d76c44e7a9ae0370b91521753&asRole=PATIENT
–
# /{project}/users
If you get the accessible users for an admin, you will get all users. For a professional you can only get the professional and the subjects to which the professional was granted access with . For a patient you can only get the patient itself.
Admins can get the accessible users of any user from any project.
GET https://www.example.com/servlets/senseeact/v6.1.0/project/default/users ?user=b43f784d76c44e7a9ae0370b91521753&role=PATIENT&includeInactive=true X-Auth-Token: ...
[ { "userid": "f6d9f1f15e4b41769db3b0565ba6e788", "email": "patient01@example.com", "role": "PATIENT", ... }, ... ]