05-30-2019 04:25 AM
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?
06-11-2019 09:05 PM
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
Explore our Alfresco products with the links below. Use labels to filter content by product module.