Cyber Security | IDM | Audit & Compliance
Anything and everything about Security
Thursday, June 26, 2014
Get the logged in user id in eventhandler/ schedule task
we can get the logged in user id using AuthenticatedSelfService api or ContextManager api.:
ContextManager.getOIMUser()
AuthenticatedSelfService asfService = Platform.getService(AuthenticatedSelfService.class);
User currActor= asfService.getProfileDetails(null);
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment