Add new attachment

Only authorized users are allowed to upload new attachments.

List of attachments

Kind Attachment Name Size Version Date Modified Author Change note
png
Jump.png 153.7 kB 3 29-Dec-2020 05:25 Halmágyi Árpád
png
Jump2.png 158.1 kB 3 29-Dec-2020 05:25 Halmágyi Árpád
png
Jump3.png 156.3 kB 1 29-Dec-2020 05:25 Halmágyi Árpád
png
PasswordExpiration.png 400.3 kB 4 29-Dec-2020 05:25 Halmágyi Árpád
png
UserVariable.png 52.7 kB 1 29-Dec-2020 05:25 Halmágyi Árpád
png
UsersList.png 113.7 kB 3 29-Dec-2020 05:25 Halmágyi Árpád
png
email.png 85.4 kB 2 29-Dec-2020 05:25 Halmágyi Árpád
jpg
expire_pass_email.jpg 195.8 kB 1 04-May-2022 19:18 Ada Csaba
jpg
expire_pass_jump1.jpg 184.9 kB 1 04-May-2022 19:18 Ada Csaba
jpg
expire_pass_jump2.jpg 186.0 kB 1 04-May-2022 19:18 Ada Csaba
jpg
expire_pass_overall.jpg 468.7 kB 1 04-May-2022 19:18 Ada Csaba
jpg
expire_pass_userlist.jpg 135.7 kB 1 04-May-2022 19:18 Ada Csaba
jpg
expire_pass_uservar.jpg 121.0 kB 1 04-May-2022 19:18 Ada Csaba

This page (revision-20) was last changed on 04-May-2022 19:54 by Ada Csaba

This page was created on 29-Dec-2020 05:25 by Halmágyi Árpád

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Difference between version and

At line 3 changed 2 lines
This task flow, needs CrushFTP 8.0.0.1 and an enterprise license to be able to use the "conditional" logic from the jump task and the math variable.\\
This task flow needs CrushFTP version 10 and an Enterprise license to be able to use the "conditional" logic with Jump and the math variable function.\\
\\
__NOTE:__ For Normal licenses, or single notification event for any license, there is a native feature available in User Manager for this, see [advanced notification of expiration|Advanced notification of expiration]
\\
\\
At line 6 changed one line
[attachments|PasswordExpiration.png]\\
[{Image src='expire_pass_overall.jpg' width='1080' height='..' align='left' style='..' class='..' }]\\
At line 8 changed 2 lines
Step1 is to read and create the UserList of the users or groups we work with.\\
[attachments|UsersList.png]\\
__Step1:__ is for reusability of the Job, we define a custom variable to set the number of days\\
after which the notifications are triggered for a certain user. Referred to below as __X__ days\\
[{Image src='expire_pass_uservar.jpg' width='800' height='..' align='left' style='..' class='..' }]\\
At line 11 changed one line
So we first link a variable from the user object loaded in step 1, and parse out its date format.  Then we do a comparison with that value, versus the current date, minus 1 days worth.  If the expire time is sooner than 1 day ago, we send an email. In this task all users that have the password expiration sooner then 7 days will be notified every day for the password update.\\
__Step2:__ is to read and create the UserList of the users or groups we work with.\\
[{Image src='expire_pass_userlist.jpg' width='800' height='..' align='left' style='..' class='..' }]\\
At line 13 changed 2 lines
Step1: We check if the user's expiration is not set.
[attachments|CrushTaskExample8/Jump.png]\\
So we first link a variable from the user object loaded in __Step2__, and parse out its date format.  Then we do a comparison with that value, versus the current date, minus __X__ days worth.  If the expire time is sooner than X day ago, we send an email. In this task all users that have the password expiration sooner then 7 days will be notified every day for the password update.\\
At line 16 changed 2 lines
Step2: We check if the user has password expiration set so that only these users will be notified.\\
[attachments|CrushTaskExample8/Jump2.png]\\
__Step3__: We check if the user's expiration is set and defined, with a Jump task, evaluate the __expire_password_when__ \\
user object attribute value matches a date pattern.\\
{{{
??/??/???? ??:??:?? ??
}}}
[{Image src='expire_pass_jump1.jpg' width='800' height='..' align='left' style='..' class='..' }]\\
At line 19 changed 3 lines
Step3: Using the math variable we can determine the user expiration time from the current starting time:
{math_start:l}{parse_start:MM/dd/yyyy hh:mm:ss aa}{expire_password_when}{parse_end}-{now}{math_end} Less Than Or Equal {math_start}1000*60*60*24*7{math_end}\\
[attachments|CrushTaskExample8/Jump3.png]\\
__Step4:__ Using the math function we can determine the user expiration time from the current starting time, in milliseconds:
{{{
{math_start:l}{parse_start:MM/dd/yyyy HH~..~mm~..~ss aa}{expire_password_when}{parse_end}-{now}{math_end}
}}}
We compare this against the number of days in milliseconds, the threshold value for sending notifications.\\
{{{
{math_start}1000*60*60*24*{notification_threshold_days}{math_end}
}}}
[{Image src='expire_pass_jump2.jpg' width='800' height='..' align='left' style='..' class='..' }]\\
At line 24 changed 2 lines
Step4: true, send email, false, do nothing\\
[attachments|email.png]\\
Step5: true, send email, false, do nothing. In the Email task __To:__ field, another user attribute is referenced, the email
address designated to the user account, with the __{user_email}__ variable.\\
[{Image src='expire_pass_email.jpg' width='800' height='..' align='left' style='..' class='..' }]\\
Version Date Modified Size Author Changes ... Change note
20 04-May-2022 19:54 2.638 kB Ada Csaba to previous
19 04-May-2022 19:53 2.634 kB Ada Csaba to previous | to last
18 04-May-2022 19:53 2.636 kB Ada Csaba to previous | to last
17 04-May-2022 19:53 2.632 kB Ada Csaba to previous | to last
16 04-May-2022 19:50 2.557 kB Ada Csaba to previous | to last
15 04-May-2022 19:42 2.41 kB Ada Csaba to previous | to last
14 04-May-2022 19:42 2.406 kB Ada Csaba to previous | to last
13 04-May-2022 19:38 2.202 kB Ada Csaba to previous | to last
12 04-May-2022 19:38 2.201 kB Ada Csaba to previous | to last
11 04-May-2022 19:24 1.774 kB Ada Csaba to previous | to last
10 04-May-2022 19:24 1.773 kB Ada Csaba to previous | to last
9 04-May-2022 19:21 1.772 kB Ada Csaba to previous | to last
8 04-May-2022 18:41 1.386 kB Ada Csaba to previous | to last
7 29-Dec-2020 05:25 1.434 kB Halmágyi Árpád to previous | to last
6 29-Dec-2020 05:25 1.335 kB Halmágyi Árpád to previous | to last
5 29-Dec-2020 05:25 1.335 kB Halmágyi Árpád to previous | to last
4 29-Dec-2020 05:25 1.335 kB Halmágyi Árpád to previous | to last
3 29-Dec-2020 05:25 1.215 kB Halmágyi Árpád to previous | to last
2 29-Dec-2020 05:25 1.031 kB Halmágyi Árpád to previous | to last
1 29-Dec-2020 05:25 1.005 kB Halmágyi Árpád to last
« This page (revision-20) was last changed on 04-May-2022 19:54 by Ada Csaba
G’day (anonymous guest)
CrushFTP10 | What's New

Referenced by
CrushTask

JSPWiki