cancel
Showing results for 
Search instead for 
Did you mean: 

How to access current users data

Not applicable

Hi!

I'm a junior developer and have to ask, maybe a simple question but could not find out on my own.

When user logs in to the application certain (json) data is transmitted to the application via GET request:

id,

isFile,

isFolder,

ParentId, etc.

How can I access this information. Needing especially users ParentId for a plugin to work.

Hopefully I was able to explain this well enough?

1 REPLY 1

kintu_barot
Star Collaborator
Star Collaborator

You can use the following java code to get the current user.

String currentUser = getServiceRegistry().getAuthenticationService().getCurrentUserName();

If you can specify the user attributes you want to get then I can help.

Regards,

Kintu

ContCentric

Regards,
Kintu