Self registration / secondary approval?

LabKey Support Forum (Inactive)
Self registration / secondary approval? Ben Bimber  2017-05-01 17:46
Status: Closed
 
The ability to let users register themselves is very useful. However, we have 2 additional requirements:

1) We'd like the potential user to submit a few additional fields in which they enter their institution and brief reason for requesting access.

2) Before the new account is actually given meaningful access, we'd like our admin to formally approve that request. For the time being, I believe 'access' means adding membership to the right group, which I'm OK with being an ad hoc kind of thing. I would be OK with the user being automatically created through the LabKey process, and only actually receiving access when our admin adds them to the group. However, our admin needs some way to know they need to follow up on this user and to make sure requests dont get lost. I would also be OK with this extra information being sent as an email, rather than persisting the DB if that ended up being easier.

Is there a good way to extend the core request process? Given our requirement to capture additional information upfront, I dont see a good option other than to largely roll our own solution. I'd probably make our own custom java RequestLoginAction, which captures the user input, stores it in a table, and gives our admin some kind of action to 'approve'. The latter would actually create the user, ideally kick off a regular user/password email, etc. It doesnt seem like that much work; however, I'm open to other ideas if this could be more aligned with core labkey.

Thanks for any ideas,
Ben
 
 
Jon (LabKey DevOps) responded:  2017-05-02 15:40
Hi Ben,

I know that with the old labkey.com site, we had to come up with a solution of our own that allowed the user to fill out a form to allow them to download the binaries and also get them signed up as a user on LabKey.org as well. The form then triggered a script on the server that would make an API call to create the user.

Let me see if I can scrounge up any more details on this.

Regards,

Jon
 
Ben Bimber responded:  2017-05-02 15:51
Hi Jon,

Thanks - I wouldnt spend too much time there if it's not obvious. It's not difficult to make java code to do this. The question was more whether there's anything in the existing self-registration features that is worth extending to help cover our scenario, and after looking closer I dont think I see anything.

-Ben
 
Jon (LabKey DevOps) responded:  2017-05-09 17:32
Hi Ben,

So it looks like in the Joomla site, we used ChronoForms to send the form data from Labkey.com to our SalesForce account and then had SalesForce send that data into LabKey.org via an API call (most likely via Python since that is one of the easier methods).

But I agree, there isn't anything within the self-registration beyond just the email address. I've brought this up as a future enhancement, which I hope we can look into doing.

Regards,

Jon