How to access current users data

cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Former Member

How to access current users data

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
kintu_barot
Senior Member

Re: How to access current users data

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