Developer forum

Forum » Integration » Email permission for new users

Email permission for new users

Tomas Gomez
Reply

Hi,

On the user integration from an external ERP, the new DW users have the email permission by default. 

An option would be to set AccesUser > AccesUserNewsletterAllowed = True in the user integration. But this integration is executed periodically, so users will regain the permission even if they decided to disable it.

Another option would to set a condition on the table rules, but its condirtions doesn't include to check the field CreatedOn

A third option would be to set AccesUserNewsletterAllowed = True in another user integration that includes only the new users, but the Source User provider doesn't allow it (there are checks for "user created or edited" and we need only the created users)

Are there more alternatives? How to enable the email permission only for new integrated users?

Regards,
Tomas

 


Replies

 
Shawn Tehini Dynamicweb Employee
Shawn Tehini
Reply
This post has been marked as an answer

Hi Tomas,

The newer versions of the platform support only applying on create in the data integration jobs to keep users from regaining the permission due to the peridoic run even after disabling. 

The same functinality to "apply a value of True to that field only on create" for older versions would requires a table script.

Both of these methods lets you set the field to True as a default only, and the source of truth will be the website.

Thanks,

Shawn Tehini

Votes for this answer: 1
 
Tomas Gomez
Reply

Hi Shawn,

Thanks for tip! It works perfect :-) 

Regards,
Tomas

 

You must be logged in to post in the forum