hltcoe / turkle

Django-based clone of Amazon's Mechanical Turk service running in your local environment.
https://turkle.readthedocs.io
Other
147 stars 47 forks source link

Create "User Admin" group as part of default Turkle installation #139

Closed charman closed 3 years ago

charman commented 3 years ago

Deleting a User currently deletes all of the User's Task Assignments, which causes all sorts of problems. As part of a default Turkle installation, it would be convenient to have a "User Admin" group that can have CRU but not D access to User accounts. The "User Admin" group would have the ability to maintain User accounts and manage Groups, but would not have full Django admin superuser status.

We are currently using django.contrib.auth for authentication and authorization. django.contrib.auth User accounts can have "staff" or "superuser" status. Per the default help text for User models:

Proposal:

User Admins should be able to create ordinary Users or create other User Admins, but would not need C, U or D access to Projects or Batches. Granting Read access to Projects and Batches in the Turkle admin UI might be helpful so that User Admins could view Batch and Project Statistics.

This Issue related to Issue #108.