getting user id from user_tool building block

Discussion created by jonas on Oct 20, 2016
Latest reply on Nov 2, 2016 by vickers.stephen

Hi, how can one extract the corresponding user object in user_tool type building block. In a course_tool type building block one can call ContextManagerFactory.getInstance().getContext().getUserId(); for this purpose. I suppose that here in the incoming request in a dotGet method, Request object contains course info and the context gets initialized because of it. However, from user_tool bblock this doesn't work. I also tried SessionManager class but with no success ether.


Thanks in advance