Enabling email access for registered users via Web API

Hi All

DHIS2 has a very useful User Settings feature that allows one to set whether a user would like to receive email and SMS message notifcations from DHIS2.

How do I go about enabling / disabling such settings for a registered user via the Web API? I’m running on DHIS2 2.19. See screenshot below:

Inline image 1

Regards

···

Farai Mutero

if there is no existing API endpoint (which there might be) you could use a parameterized sqlview calling a function which updates the user table directly

image

···

On Thursday, 12 November 2015, Farai Mutero fmutero@gmail.com wrote:

Hi All

DHIS2 has a very useful User Settings feature that allows one to set whether a user would like to receive email and SMS message notifcations from DHIS2.

How do I go about enabling / disabling such settings for a registered user via the Web API? I’m running on DHIS2 2.19. See screenshot below:

Inline image 1

Regards


Farai Mutero


Pierre Dane

Development Manager

Jembi Health Systems

Thanks Dan and Pierre for the advise, much appreciated.

image

···

On Thu, Nov 12, 2015 at 11:16 PM, Pierre Dane pierre@jembi.org wrote:

if there is no existing API endpoint (which there might be) you could use a parameterized sqlview calling a function which updates the user table directly

On Thursday, 12 November 2015, Farai Mutero fmutero@gmail.com wrote:

Hi All

DHIS2 has a very useful User Settings feature that allows one to set whether a user would like to receive email and SMS message notifcations from DHIS2.

How do I go about enabling / disabling such settings for a registered user via the Web API? I’m running on DHIS2 2.19. See screenshot below:

Regards


Farai Mutero

Pierre Dane

Development Manager

Jembi Health Systems

Farai Mutero

This was recently discussed on the list here

https://www.mail-archive.com/dhis2-devs@lists.launchpad.net/msg38830.html

As Pierre says, you could likely wrap up that SQL into a paramaterized function, and call it through the WebAPI (alternatively, directly against the database as a scheduled task).

Regards,

Jason

image

···

On Fri, Nov 13, 2015 at 9:24 AM, Farai Mutero fmutero@gmail.com wrote:

Thanks Dan and Pierre for the advise, much appreciated.


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 Thu, Nov 12, 2015 at 11:16 PM, Pierre Dane pierre@jembi.org wrote:

if there is no existing API endpoint (which there might be) you could use a parameterized sqlview calling a function which updates the user table directly

On Thursday, 12 November 2015, Farai Mutero fmutero@gmail.com wrote:

Hi All

DHIS2 has a very useful User Settings feature that allows one to set whether a user would like to receive email and SMS message notifcations from DHIS2.

How do I go about enabling / disabling such settings for a registered user via the Web API? I’m running on DHIS2 2.19. See screenshot below:

Regards


Farai Mutero

Pierre Dane

Development Manager

Jembi Health Systems

Farai Mutero

Jason P. Pickering
email: jason.p.pickering@gmail.com
tel:+46764147049

Farai,

To be honest I am not sure exactly what that tick box does because on our instances we are still able to send emails to a user without that tick box ticked.

It is also a user setting so no matter whether we activate it or not the user can still deactivate it in instances other than ndd.

Elmarie

Hi All

DHIS2 has a very useful User Settings feature that allows one to set whether a user would like to receive email and SMS message notifcations from DHIS2.

How do I go about enabling / disabling such settings for a registered user via the Web API? I’m running on DHIS2 2.19. See screenshot below:

Inline image 1

Regards

···


Farai Mutero


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

This message and any attachments are subject to a disclaimer published at http://www.hisp.org/policies.html#comms_disclaimer. Please read the disclaimer before opening any attachment or taking any other action in terms of this electronic transmission. If you cannot access the disclaimer, kindly send an email to disclaimer@hisp.org and a copy will be provided to you. By replying to this e-mail or opening any attachment you agree to be bound by the provisions of the disclaimer.