User Creation Through API

Hey everyone -

We're beginning to investigate using a home grown tool to do some user admin functions, one of which is creating ODK users. I've been poking around some docs and the best matches I've found are:

*Sync-Client (https://github.com/opendatakit/sync-client/blob/master/opendatakit.wink/src/org/opendatakit/wink/client/WinkClient.java)

This seems somewhat promising but user actions currently aren't among the API functionalities

*Javarosa UserRegistrationAPI (https://bitbucket.org/javarosa/javarosa/wiki/UserRegistrationAPI)

This looks ideal, but still in development from what I understand (and maybe dead in the water? last edit to page was 4+ years ago)

So, my question for y'all is what would you recommend going forward before I still tinkering? I'd be glad to look into making a PR to the client-sync repo for user creation but I don't know if this would be outside of the scope of the API? Or, does anyone know if the Javarosa project might be moving forward?

Thanks

I believe you are looking to change the ODK Aggregate 1.x code, and not any
of the 2.0 code. All of ODK Aggregate code is in the aggregate project.
ODK Sync is for the 2.0 protocol and would not be changed.

The wink interface is used only for ODK 2.0 interactions. Wink itself is
arguably a sketchy REST stack implementation for us to have used, as it is
close to being a dead OpenSource project. On the plus side, it was easy to
gut and reduce to the minimal footprint we needed for Android (which, among
other annoyances, does not support XML or standard JAX REST api
annotations).

I don't even remember the user-registration API discussions or that there
was a document write-up; that proposal is dead.

The server does not have any APIs to expose user creation functionality,
that is all done through GWT, so you would need to add (REST?) servlets to
do that. Administratively setting a user's password is done through a
servlet.

Note that user permissions management is done through a single-step "make
all of the users have these permissions and remove anything else"
mechanism. I.e., there is no code to administer permissions for individual
users. We take the approach that the UI/client will define exactly what
permissions everyone on the system has, and atomically replace the current
permissions set with that new one. It would be ill-advised to attempt to
graft per-user settings changes onto the side of that mechanism. Again,
this is currently exposed only through GWT.

ยทยทยท On Fri, Sep 25, 2015 at 3:01 AM, wrote:

Hey everyone -

We're beginning to investigate using a home grown tool to do some user
admin functions, one of which is creating ODK users. I've been poking
around some docs and the best matches I've found are:

*Sync-Client (
https://github.com/opendatakit/sync-client/blob/master/opendatakit.wink/src/org/opendatakit/wink/client/WinkClient.java
)

This seems somewhat promising but user actions currently aren't among
the API functionalities

*Javarosa UserRegistrationAPI (
https://bitbucket.org/javarosa/javarosa/wiki/UserRegistrationAPI)

This looks ideal, but still in development from what I understand (and
maybe dead in the water? last edit to page was 4+ years ago)

So, my question for y'all is what would you recommend going forward before
I still tinkering? I'd be glad to look into making a PR to the client-sync
repo for user creation but I don't know if this would be outside of the
scope of the API? Or, does anyone know if the Javarosa project might be
moving forward?

Thanks

--
You received this message because you are subscribed to the Google Groups
"ODK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com