Hi, I followed this comment to create a script that creates users in batch:
It works perfectly!
(albeit it’s a bit slow, specially when you need to create 100+ users!!)
Now, I would prefer not to have to manually set the permissions for all those users.
I see from this comment (Uploading users in bulk in Django - #8 by Josh), that you can set the
'add_submissions' permission if you retrieve the project uid, however:
- How do you retrieve a project UID without having to first submit dummy data and check in the saved data?
- Is is possible to
POSTthe permission/user id/project id to an endpoint? What would be the syntax for that?
It looks like there is an API permission endpoint (kpi/permission.py at 7c3ddb774884f8e7bddeb5236f91ae45a054daf7 · kobotoolbox/kpi · GitHub), however I’m not sure how to access that, and in which version of kobotoolbox it’s available.
Thank you again for this amazing app.