Log out Automatically in Schedule event

0
Hi Experts, My requirement is I need to run a schedule event for every 5 minutes. I t will check some conditions and if the condition fails then I need to retrieve one particular user role and logout that users automatically with the message . But the issue am facing is I cannot retrieve the current user in by using GET_Current_User microflow. How can I retrieve the current logged in person from scheduling event ?   Thanks in Advance.
asked
1 answers
0

Hi Shalini,

Scheduled event does not run in a user context and hence you get the object empty in your currentUser microflow. You can look at active sessions in the application and filter based on the user role for which you want to conditionally logout.

You can find ActiveSessions from Administration module.

Hope this helps!

answered