Create single login user

0
Is it possible to create a option on a new created user whereby the user can login once, fill in a survey or something and then will be deleted as a user. The input of the filled in survey must remain but the given login code can only be used once. Is this possible? Thank you in advance, Tom Selten
asked
3 answers
2

You can delete the user, but you could also set the attribute 'Active' on false. The user will remain in the database, but has no rights to login in the app. Of course you need to delete/inactive the user after completing the survey.

answered
1

Shouldn't be a problem to delete the user. Create a microflow that commits the survey fields and then deletes the current user. Then, use the microflow as a custom save button - put a microflow button on the webform with the survey, call the microflow you've created with that button, change the text and icon of the microflow button to match the standard save button and delete the standard save button on your form.

Only thing I am not sure of is what will happen to the 'created' attribute of the survey entity as you've just deleted the creator - warrants some testing.

answered
0

Thank you, but is it possible to delete a user automatically when he/she logouts the first time? Maybe a microflow?

answered