cancel
Showing results for 
Search instead for 
Did you mean: 

Session info starting from ticket

3acascia
Champ in-the-making
Champ in-the-making
Hi All,

Is it possible to get session information starting from a valid Alfresco ticket?
In particular, I'd like to code a webscript that can retrieve username starting from a valid ticket.

Thanks in advance,
Toma
3 REPLIES 3

abarisone
Star Contributor
Star Contributor
Hi,
if you need to know the currently authenticated user you can just use the
person
root object that is a ScriptNode object representing the current user.
person.properties.userName
is what you're looking for.
The People ScriptNode API gives you many other methods to handle this object.

Regards,
Andrea

3acascia
Champ in-the-making
Champ in-the-making
Thank you Andrea for your reply.

What I want achieve is read session list and access username associated to as a specific alfresco ticket, if it is possible.

Thanks in advance,
Toma

ivo_c_costa
Champ in-the-making
Champ in-the-making
Check validate from AuthenticationService:
http://dev.alfresco.com/resource/docs/java/repository/org/alfresco/service/cmr/security/Authenticati...

just be sure to save your original session