send an email to user with itil group names, if user is a member of itil group

Sarah Bouil
Tera Expert

Hi,

 

The request is to send an email to user with itil group names if user a member of itil group. How to achieve it?

4 REPLIES 4

Jake Sadler
Kilo Sage

Hey @Sarah Bouil ,

 

I am not sure of what context this is in in but you could fire an event that fires the notifications

SN_Learn
Kilo Patron
Kilo Patron

Hi @Sarah Bouil ,

 

The trigger a notification one of the crucial part is to decide what will be the trigger condition 'when to send'.

Could you please explain your use case in detail? Thanks.

----------------------------------------------------------------
Mark this as Helpful / Accept the Solution if this helps.

I need to remove ITIL role from user ''Test1'' but the ITIL role is inherited from group 'Welcome1'. In order to remove ITIL role from user I should be remove group ''Welcome1' from user 'Test1', since ITIL is inherited from group.

 

so my requirement is:

1. I need to send an email to Test1 user and saying message as: we are revoking the ITIL access and the group is: Welcome1, since you didn't logged in the system from last 6 months.

Hi @Sarah Bouil ,

 

You can achieve this by using Flow Designer.

I am sharing the step by step process as below:

 

In the filter navigator, search 'Flow Designer' open it.

Click on 'new' and select 'flow'

SN_Learn_0-1721471577861.png

 

Provide a Flow name and description, click on build flow.

In the Trigger, select as below:

SN_Learn_1-1721471736553.png

 

It will run daily at 6 to check for users

SN_Learn_2-1721471785981.png

 

In the action, select as below: Last login relative before 6 months ago and active is true for user record.

SN_Learn_3-1721471857263.png

 

 

Now, In Flow Logic > For each

SN_Learn_4-1721472009529.png

Now, we are going through each record in sys_user_grmember for each user found in above record.

 

SN_Learn_5-1721472263153.png

 

Looping through each record and in next step we will delete/remove them.

SN_Learn_6-1721472387262.png

 

removing the group and it will eventually remove inherited roles.

SN_Learn_7-1721472491753.png

 

Finally, we are going to send the notification to the user who has been removed.

Create an event in the [sysevent_register] table with name 'inactivity.alert'

 

SN_Learn_8-1721472641817.png

SN_Learn_9-1721473058088.png

 

Now, setup a notification which will trigger by the above event and in who will receive, select parm1 as that will have the email of the recipient.

 

Result for reference of the above setup:

SN_Learn_12-1721473560170.png

 

SN_Learn_11-1721473501300.png

 

 

Mark this as Helpful / Accept the Solution if this helps

----------------------------------------------------------------
Mark this as Helpful / Accept the Solution if this helps.