Author Topic: How to retrieve user info of logged in user in custom Content Navigator Plugin  (Read 773 times)

Andreas Baaserud Hauge

  • Jr. Member
  • **
  • Posts: 44
    • View Profile
Hi,

I am working on a Content Navigator Plugin where I need to get hold of the user id for the logged in user in Content Navigator.
Does anyone have any clue how I can achieve this?

Love your reply <3
ABH

Andreas Baaserud Hauge

  • Jr. Member
  • **
  • Posts: 44
    • View Profile
Here's what I did to get hold of the user id through Java

Code: [Select]
# Preliminary - Passing PluginServiceCallbacks callbacks Plugin

# get hold of the ODServer object by the repositoryID
ODServer server = callbacks.getODServer(repositoryId);

# Now we can retrieve user info
String userId = server.getUserId();

Through Javascript can use something like ecm.model.desktop.userId
ABH