I have a community site and users are uploading documents and participating in discussions. I want to generate a report using JS by users's department for users activities. I could see the user's department name by changing Created By column to show Department name in column settings (show field: Department. Instead of Name with pictures).
Can I read this department name programmatically using JS (I do not want to apply Department in column) and generate report of all activities by department?