Ticket owner through Restful API call

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
georgewww
Member II

Ticket owner through Restful API call

Jump to solution

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 Solution

Accepted Solutions
georgewww
Member II

Re: Ticket owner through Restful API call

Jump to solution

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

2 Replies
georgewww
Member II

Re: Ticket owner through Restful API call

Jump to solution

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

Community Manager
Community Manager

Re: Ticket owner through Restful API call

Jump to solution

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