Re: [Dhis2-devs] Enabling email access for registered users via Web API

2015-11-15 Thread Elmarie Claasen
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. E

Re: [Dhis2-devs] Enabling email access for registered users via Web API

2015-11-13 Thread Jason Pickering
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)

Re: [Dhis2-devs] Enabling email access for registered users via Web API

2015-11-13 Thread Farai Mutero
Thanks Dan and Pierre for the advise, much appreciated. On Thu, Nov 12, 2015 at 11:16 PM, Pierre Dane 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 Nove

Re: [Dhis2-devs] Enabling email access for registered users via Web API

2015-11-12 Thread Pierre Dane
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 wrote: > Hi All > > DHIS2 has a very useful User Settings feature that allows one to set > whethe

[Dhis2-devs] Enabling email access for registered users via Web API

2015-11-12 Thread Farai Mutero
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 bel