When a user doesn't login for 60 days remove him from groups with ITIL role only using Flow Designer

Susmitha1625
Tera Guru

Hello All,

 

I've a request to remove a user from the groups with ITIL role if he doesn't login for 60 days by only using Flow Designer. Please help me with the design flow. Thanks in Advance.

1 ACCEPTED SOLUTION

@Susmitha1625 

I hope this helps

flow user not login.gif

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

14 REPLIES 14

@Susmitha1625 

once you use Lookup Records on sys_user_grmember based on itil condition; simply use for each to iterate and delete.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Susmitha1625 

I hope this helps

flow user not login.gif

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Susmitha1625 

Hope you are doing good.

Did my reply answer your question?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi @Ankur Bawiskar

 

Not sure if something has changed on the ServiceNow side since your great solution but when I test it on my end, it doesn't run the delete action.

 

Aamir1Khan_0-1699532139602.png

 

Can you Please guide me on this if I am doing something wrong. Thanks in Advance.

@Aamir1Khan 

flow is running as system user?

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader