Unrevoke or Generate new Token for App Users

Hello all, I recently start use ODK to collect a survey data. Now, I want to change the odk-collect settings used by App Users (using a new QR code generated by pyodk). However, if the App User still has the same token, he/she still can use the old QR code to make a submission.

1. What is the issue? Please be detailed.
Is there any way to un-revoke App Users or generate a new token for App Users without deleting/revoking first.

2. What steps can we take to reproduce this issue?

3. What have you tried to fix the issue?

4. Upload any test forms or screenshots below.

Thank you...

You cannot un-revoke an app user. You can generate as many new app users as you want.

The QR code has the server URL with the token appended. It also contains any customized app configuration settings. You could create an updated QR Code with different app configuration settings but the same token as before if you only want to change the Collect configuration and not the app user.

1 Like

That's right. If you want to be 100% sure that old settings from a prior QR code are not being used, you will need to revoke the App User and create a new one. You can use the same name for that new App User. This is the only way you can guarantee that the old QR code is not used.

This is a good option if you are able to verify that the new codes are used. If you need help adapting the pyodk sample to create codes for existing App Users, let us know.

1 Like