In a Alfresco webscript I want to get connected user. In share webscript I know there is a root object called "user"
which allows us to get connected user properties.
But in Alfresco webscript this root object is undefined. Actualy I have to pass connected user's userName
as argument of the webscript url.
Is there a way to directly get user properties in alfresco webscript (javascript) ?
I'm using alfresco 5.0.d.
Alfresco and share webscript has differrent set of javascript api.
You can find that on below link.
Alfresco : http://wiki.alfresco.com/wiki/4.0_JavaScript_API
Share : http://docs.alfresco.com/5.0/references/APISurf-rootscoped.html
person.properties.userName
above will return current username in alfresco javascript.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.