In order to fully support user/setup flow, we should append a few apis. API endpoints are just a suggestion..
user/setup_request/create
- This endpoint will accept/store a new pending request for user/setup & class/create privileges. It will also email admin this info if
send_setup_request_notifications = true
- Suggested/required parameters:
username,email,study_start_date,study_duration,study_user_count,study_description,organization.
user/setup_request/read
- This endpoint will list all requests known to the server, optionally limiting to only those pending.
- Suggested parameters for filtering:
username, pending
- This api will be admin only
user/setup_request/update
- This endpoint will modify a pending request to
successful. It will email the address listed in the pending request with usage policy info on successful state change.
- Suggested parameters:
request_id, silent (which would disable sending the email to user on file, defaults to false).
- This api will be admin only
Additionally,
- two (maybe 3) new rows in preferences table:
admin_email (defaults to root@localhost) and send_setup_request_notifcations (defaults to false) and user_setup_policy?
- user setup policy text should read:
The class setup privilege (required for setup of your own participants) comes with more responsibility in the ohmage system. Your receipt of this message confirms your acceptance of this policy.
* The user will not share his/her account username and password with anyone under any circumstances. A member of the ohmage project will never ask the user for their password.
* The user will create classes and add participants only for the purpose of the the study detailed below and will not create classes for other study coordinators.
* The user will ensure they are logged out of their account before leaving their computer unattended.
* The user will keep generated accounts and passwords for participants private and share the account information to assigned participants only.
* ohmage personnel reserve the right to modify or terminate accounts of users at any time for any reason.
This issue is mainly meant to be living documentation of this feature, so please add whatever I'm missing. @hongsudt @jeroenooms
In order to fully support user/setup flow, we should append a few apis. API endpoints are just a suggestion..
user/setup_request/createsend_setup_request_notifications = trueusername,email,study_start_date,study_duration,study_user_count,study_description,organization.user/setup_request/readusername,pendinguser/setup_request/updatesuccessful. It will email the address listed in the pending request with usage policy info on successful state change.request_id,silent(which would disable sending the email to user on file, defaults tofalse).Additionally,
admin_email(defaults to root@localhost) andsend_setup_request_notifcations(defaults tofalse) anduser_setup_policy?This issue is mainly meant to be living documentation of this feature, so please add whatever I'm missing. @hongsudt @jeroenooms