Send a mail to new users after X days?

Comments

8 comments

  • Avatar
    Tatiana Golubovich

    Hi Niklas, 

    What CayoAmin Service version do you use now? Did you upgrade to 6.3.1?

     

    Tatiana

     

     

     

    0
    Comment actions Permalink
  • Avatar
    Niklas Myrnäs

    Hi

    Yes, we have the latest version.

    Best regards

    Niklas

    0
    Comment actions Permalink
  • Avatar
    Tatiana Golubovich

    Hi Niklas, 

     

    1. Add mail attribute to Properties to display and System properties in AD Users report

    2. To get users that were created for the last 30 days, add this code to Initialization Script section:

    {$global:DatePeriod = (Get-Date).AddDays(-30)}

    3. Add filter to Query Criteria: {whenCreated -ge $DatePeriod}

    4. Add this script to To field:

    { $emails=@(); ($LastResult | %{ if($Null -ne $_ -and $_.mail -ne ''){$emails += $_.mail; }}); $emails; }.InvokeReturnAsIs()

     

    Please let me know if it works for you.

     

    Tatiana

    0
    Comment actions Permalink
  • Avatar
    Niklas Myrnäs

    Hi

    Sorry, but I don't understand what to do in step nb 1.

    Best regards

    Niklas

    0
    Comment actions Permalink
  • Avatar
    Tatiana Golubovich

    You should create AD users report and add mail attribute to Properties to display and System properties settings.

    0
    Comment actions Permalink
  • Avatar
    Niklas Myrnäs

    Ah, I understand.

    Thanks, I'll test it on Monday. Have a nice weekend.

    /Niklas

    0
    Comment actions Permalink
  • Avatar
    Niklas Myrnäs

    Hi

    I have an additional question to this case. :-)

    Can I somehow make sure that the rule only sends an email to the respective users once? For example by setting a value into a Virtual Attribute for the users that have got the email? Or is there an easier way?

    Best regards

    Niklas

    0
    Comment actions Permalink
  • Avatar
    Tatiana Golubovich

    Hi Niklas,

    You can schedule it to run once a month.

     

    Tatiana

    0
    Comment actions Permalink

Please sign in to leave a comment.