i want to get the current user who is logged in and i used this way and i jave injected the SpringsecurityService and i am getting this error like "Caused by No such property: principal for class: grails.plugin.springsecurity.SpringSecurityService Possible solutions: principal".
Organization.controller
SpringSecurityService springSecurityService
def user = springSecurityService.get(SpringSecurityService.principal.id)