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!