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:
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:
Thanks Dan and Pierre for the advise, much appreciated.
···
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:
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
···
On Fri, Nov 13, 2015 at 9:24 AM, Farai Mutero fmutero@gmail.com wrote:
Thanks Dan and Pierre for the advise, much appreciated.
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:
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:
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.