cancel
Showing results for 
Search instead for 
Did you mean: 

Ticket owner through Restful API call

georgewww
Champ in-the-making
Champ in-the-making

Hello

I'm trying to find the owner of the ticket through API REST call, any idea? 

http://127.0.0.2:8081/alfresco/service/api/people/admin?alf_ticket=TICKET_aa4fe06e208bdc10a551b17d43626ef8df3174f9

with this call, it gets you any person you put in place of the 'admin' parameter

http://127.0.0.2:8081/alfresco/service/api/login/ticket/TICKET_aa4fe06e208bdc10a551b17d43626ef8df3174f9?alf_ticket=TICKET_aa4fe06e208bdc10a551b17d43626ef8df3174f9

this will get you that is valid ... but whos the owner? To whom the ticket belongs? I need the username somehow without asking her password (i can ask for username). 

Or at least somehow to send the ticket and username and get a response if that username is the owner of the ticket. e.g.

http://127.0.0.2:8081/alfresco/service/api/fantastic-API/george?alf_ticket=TICKET_aa4fe06e208bdc10a5...

response: YES (George is the owner of that ticket)

                 NO (George is not the owner of that ticket)

Thank you all!!!

1 ACCEPTED ANSWER

georgewww
Champ in-the-making
Champ in-the-making

Solved. Create a webscript with auth user level and return the current username.

View answer in original post

2 REPLIES 2

georgewww
Champ in-the-making
Champ in-the-making

Solved. Create a webscript with auth user level and return the current username.

Thanks for coming back and letting us know how you worked it out. Should help someone in the future!