Hi Alfresco community. I'm working on a project and i need to populate a selectone with a contact list from repository. The contact list depent of current logged user group. I created a data webscript in order to get contact list but when i try to get currently share logged user i always get admin. What is the best way to get contact list based on share logged user's role?
Did you by any chance define your web script as "runAs" with the user admin? Only that would explain "always" getting the logged-in user as "admin" (except if your are always testing as admin of course).
You know that instead of implementing a custom web script, you could also use a registered LIST constraint implementation (Java-based) for the property which dynamically resolves contacts in its implementation of getAllowedValues