re-sinding user account invitations

Hello Devs

I recently had create 250+ user account invitations and I had some problems along the way. Some users got codes that were rejected by the system, I didn't find a reason for that but it happened to just a few users. Others just couldn't find the emails for multiple reasons and asked to resend them. So, I have a couple of questions:

- Is there a way to re-send the emails perhaps with a new code? Of course other than deleting the invitations and creating them again. I imagine I'll have to do this at least a couple of times to get every user to activate their accounts and I'd like to avoid having to manually delete 200+ accounts every time I have to renew the invitations.

- Is it possible to create multiple invitations with a single payload?

Best regards,
JM

Hi JM,

Both your questions sound like good ideas to me, but unfortunately neither is supported in the current software.

Cheers,

Jim

···

On Fri, Oct 24, 2014 at 8:52 AM, Juan Manuel Alcantara Acosta jmalcantara1@gmail.com wrote:

Hello Devs

I recently had create 250+ user account invitations and I had some problems along the way. Some users got codes that were rejected by the system, I didn’t find a reason for that but it happened to just a few users. Others just couldn’t find the emails for multiple reasons and asked to resend them. So, I have a couple of questions:

  • Is there a way to re-send the emails perhaps with a new code? Of course other than deleting the invitations and creating them again. I imagine I’ll have to do this at least a couple of times to get every user to activate their accounts and I’d like to avoid having to manually delete 200+ accounts every time I have to renew the invitations.

  • Is it possible to create multiple invitations with a single payload?

Best regards,

JM


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Hi Jim

Thanks for your reply. I’ll add these features to my wish list :wink:

JM

···

On Fri, Oct 24, 2014 at 8:52 AM, Juan Manuel Alcantara Acosta jmalcantara1@gmail.com wrote:

Hello Devs

I recently had create 250+ user account invitations and I had some problems along the way. Some users got codes that were rejected by the system, I didn’t find a reason for that but it happened to just a few users. Others just couldn’t find the emails for multiple reasons and asked to resend them. So, I have a couple of questions:

  • Is there a way to re-send the emails perhaps with a new code? Of course other than deleting the invitations and creating them again. I imagine I’ll have to do this at least a couple of times to get every user to activate their accounts and I’d like to avoid having to manually delete 200+ accounts every time I have to renew the invitations.

  • Is it possible to create multiple invitations with a single payload?

Best regards,

JM


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Hi JM,

I had a similar requirement a few weeks back. Pierre from Jembi helped with python scripting to convert all the user invites in csv to Json. It was then relatively easy to have multiple invites sent out in one command.

If it helps, I have attached the script below and copied Pierre. He had mentioned working on this as a contribution to the community.

Best regards,

Busoye

Very nice script, thanks. Maybe I should start scripting in Python as well!

···

On Fri, Oct 24, 2014 at 11:42 AM, Adebusoye Anifalaje busoye@hisp.org wrote:

Hi JM,

I had a similar requirement a few weeks back. Pierre from Jembi helped with python scripting to convert all the user invites in csv to Json. It was then relatively easy to have multiple invites sent out in one command.

If it helps, I have attached the script below and copied Pierre. He had mentioned working on this as a contribution to the community.

Best regards,

Busoye

On 24 Oct 2014, at 16:01, Jim Grace jimgrace@gmail.com wrote:

Hi JM,

Both your questions sound like good ideas to me, but unfortunately neither is supported in the current software.

Cheers,

Jim


Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help : https://help.launchpad.net/ListHelp

On Fri, Oct 24, 2014 at 8:52 AM, Juan Manuel Alcantara Acosta jmalcantara1@gmail.com wrote:

Hello Devs

I recently had create 250+ user account invitations and I had some problems along the way. Some users got codes that were rejected by the system, I didn’t find a reason for that but it happened to just a few users. Others just couldn’t find the emails for multiple reasons and asked to resend them. So, I have a couple of questions:

  • Is there a way to re-send the emails perhaps with a new code? Of course other than deleting the invitations and creating them again. I imagine I’ll have to do this at least a couple of times to get every user to activate their accounts and I’d like to avoid having to manually delete 200+ accounts every time I have to renew the invitations.

  • Is it possible to create multiple invitations with a single payload?

Best regards,

JM


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Hi Busoye
Very nice, thank you!
JM

···

El 24/10/2014, a las 10:42, Adebusoye Anifalaje <busoye@hisp.org> escribió:

<inviteUsers.py>

I forgot to mention that I found that the form that is presented to create the new account includes a field for Employer information and it’s mandatory, even though the attribute doesn’t exist in the system. See image attached.

Best regards,

JM

(DHIS2 2.16)

···

On Fri, Oct 24, 2014 at 11:42 AM, Adebusoye Anifalaje busoye@hisp.org wrote:

Hi JM,

I had a similar requirement a few weeks back. Pierre from Jembi helped with python scripting to convert all the user invites in csv to Json. It was then relatively easy to have multiple invites sent out in one command.

If it helps, I have attached the script below and copied Pierre. He had mentioned working on this as a contribution to the community.

Best regards,

Busoye

On 24 Oct 2014, at 16:01, Jim Grace jimgrace@gmail.com wrote:

Hi JM,

Both your questions sound like good ideas to me, but unfortunately neither is supported in the current software.

Cheers,

Jim


Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help : https://help.launchpad.net/ListHelp

On Fri, Oct 24, 2014 at 8:52 AM, Juan Manuel Alcantara Acosta jmalcantara1@gmail.com wrote:

Hello Devs

I recently had create 250+ user account invitations and I had some problems along the way. Some users got codes that were rejected by the system, I didn’t find a reason for that but it happened to just a few users. Others just couldn’t find the emails for multiple reasons and asked to resend them. So, I have a couple of questions:

  • Is there a way to re-send the emails perhaps with a new code? Of course other than deleting the invitations and creating them again. I imagine I’ll have to do this at least a couple of times to get every user to activate their accounts and I’d like to avoid having to manually delete 200+ accounts every time I have to renew the invitations.

  • Is it possible to create multiple invitations with a single payload?

Best regards,

JM


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Hei JM,

employer is under Profile :wink:

https://apps.dhis2.org/demo/dhis-web-commons-about/showUpdateUserProfileForm.action

Lars

image

···

On Sat, Oct 25, 2014 at 4:13 AM, Juan Manuel Alcantara Acosta jmalcantara1@gmail.com wrote:

I forgot to mention that I found that the form that is presented to create the new account includes a field for Employer information and it’s mandatory, even though the attribute doesn’t exist in the system. See image attached.

Best regards,

JM

(DHIS2 2.16)

El 24/10/2014, a las 10:51, Jim Grace jimgrace@gmail.com escribió:

Very nice script, thanks. Maybe I should start scripting in Python as well!


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

On Fri, Oct 24, 2014 at 11:42 AM, Adebusoye Anifalaje busoye@hisp.org wrote:

Hi JM,

I had a similar requirement a few weeks back. Pierre from Jembi helped with python scripting to convert all the user invites in csv to Json. It was then relatively easy to have multiple invites sent out in one command.

If it helps, I have attached the script below and copied Pierre. He had mentioned working on this as a contribution to the community.

Best regards,

Busoye

On 24 Oct 2014, at 16:01, Jim Grace jimgrace@gmail.com wrote:

Hi JM,

Both your questions sound like good ideas to me, but unfortunately neither is supported in the current software.

Cheers,

Jim


Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help : https://help.launchpad.net/ListHelp

On Fri, Oct 24, 2014 at 8:52 AM, Juan Manuel Alcantara Acosta jmalcantara1@gmail.com wrote:

Hello Devs

I recently had create 250+ user account invitations and I had some problems along the way. Some users got codes that were rejected by the system, I didn’t find a reason for that but it happened to just a few users. Others just couldn’t find the emails for multiple reasons and asked to resend them. So, I have a couple of questions:

  • Is there a way to re-send the emails perhaps with a new code? Of course other than deleting the invitations and creating them again. I imagine I’ll have to do this at least a couple of times to get every user to activate their accounts and I’d like to avoid having to manually delete 200+ accounts every time I have to renew the invitations.

  • Is it possible to create multiple invitations with a single payload?

Best regards,

JM


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

LOL thanks! in our servers the information doesn’t show up in any of the accounts created with invites.

Best regards,

JM

···

On Sat, Oct 25, 2014 at 4:13 AM, Juan Manuel Alcantara Acosta jmalcantara1@gmail.com wrote:

I forgot to mention that I found that the form that is presented to create the new account includes a field for Employer information and it’s mandatory, even though the attribute doesn’t exist in the system. See image attached.

Best regards,

JM

(DHIS2 2.16)

El 24/10/2014, a las 10:51, Jim Grace escribió:

Very nice script, thanks. Maybe I should start scripting in Python as well!


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

On Fri, Oct 24, 2014 at 11:42 AM, Adebusoye Anifalaje busoye@hisp.org wrote:

Hi JM,

I had a similar requirement a few weeks back. Pierre from Jembi helped with python scripting to convert all the user invites in csv to Json. It was then relatively easy to have multiple invites sent out in one command.

If it helps, I have attached the script below and copied Pierre. He had mentioned working on this as a contribution to the community.

Best regards,

Busoye

On 24 Oct 2014, at 16:01, Jim Grace jimgrace@gmail.com wrote:

Hi JM,

Both your questions sound like good ideas to me, but unfortunately neither is supported in the current software.

Cheers,

Jim


Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help : https://help.launchpad.net/ListHelp

On Fri, Oct 24, 2014 at 8:52 AM, Juan Manuel Alcantara Acosta jmalcantara1@gmail.com wrote:

Hello Devs

I recently had create 250+ user account invitations and I had some problems along the way. Some users got codes that were rejected by the system, I didn’t find a reason for that but it happened to just a few users. Others just couldn’t find the emails for multiple reasons and asked to resend them. So, I have a couple of questions:

  • Is there a way to re-send the emails perhaps with a new code? Of course other than deleting the invitations and creating them again. I imagine I’ll have to do this at least a couple of times to get every user to activate their accounts and I’d like to avoid having to manually delete 200+ accounts every time I have to renew the invitations.

  • Is it possible to create multiple invitations with a single payload?

Best regards,

JM


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Just looked in the database and I see the information is there, I just can’t see it in the profile page.

Thanks!

JM

···

On Sat, Oct 25, 2014 at 4:13 AM, Juan Manuel Alcantara Acosta jmalcantara1@gmail.com wrote:

I forgot to mention that I found that the form that is presented to create the new account includes a field for Employer information and it’s mandatory, even though the attribute doesn’t exist in the system. See image attached.

Best regards,

JM

(DHIS2 2.16)

El 24/10/2014, a las 10:51, Jim Grace escribió:

Very nice script, thanks. Maybe I should start scripting in Python as well!


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

On Fri, Oct 24, 2014 at 11:42 AM, Adebusoye Anifalaje busoye@hisp.org wrote:

Hi JM,

I had a similar requirement a few weeks back. Pierre from Jembi helped with python scripting to convert all the user invites in csv to Json. It was then relatively easy to have multiple invites sent out in one command.

If it helps, I have attached the script below and copied Pierre. He had mentioned working on this as a contribution to the community.

Best regards,

Busoye

On 24 Oct 2014, at 16:01, Jim Grace jimgrace@gmail.com wrote:

Hi JM,

Both your questions sound like good ideas to me, but unfortunately neither is supported in the current software.

Cheers,

Jim


Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help : https://help.launchpad.net/ListHelp

On Fri, Oct 24, 2014 at 8:52 AM, Juan Manuel Alcantara Acosta jmalcantara1@gmail.com wrote:

Hello Devs

I recently had create 250+ user account invitations and I had some problems along the way. Some users got codes that were rejected by the system, I didn’t find a reason for that but it happened to just a few users. Others just couldn’t find the emails for multiple reasons and asked to resend them. So, I have a couple of questions:

  • Is there a way to re-send the emails perhaps with a new code? Of course other than deleting the invitations and creating them again. I imagine I’ll have to do this at least a couple of times to get every user to activate their accounts and I’d like to avoid having to manually delete 200+ accounts every time I have to renew the invitations.

  • Is it possible to create multiple invitations with a single payload?

Best regards,

JM


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp