Is it possible to do this through the OAuth interface, or am I going to have to curl a token and then use that to login to the client? I've been trying to figure this out, but as of yet have had no luck.
Is this possible, or has anyone had any luck with implementing this?
In an effort to avoid simply solving an XY-problem
My end goal is to be able to use a single API Request:
$tickets = $client->tickets()->findAll();
And return all tickets which the user has permissions to view (requester, assignee, cc'd, or within view-enabled organization).
This would also solve my (larger) problem of blocking a user from viewing a ticket they are not allowed to by manually going to a url endpoint which triggers a request (myzendesk.org/tickets/ticket_id).
I would like to authenticate with the impersonate scope as outlined in the following article:
https://help.zendesk.com/hc/en-us/articles/229488908
Is it possible to do this through the OAuth interface, or am I going to have to curl a token and then use that to login to the client? I've been trying to figure this out, but as of yet have had no luck.
Is this possible, or has anyone had any luck with implementing this?
In an effort to avoid simply solving an XY-problem
My end goal is to be able to use a single API Request:
$tickets = $client->tickets()->findAll();
And return all tickets which the user has permissions to view (requester, assignee, cc'd, or within view-enabled organization).This would also solve my (larger) problem of blocking a user from viewing a ticket they are not allowed to by manually going to a url endpoint which triggers a request (myzendesk.org/tickets/ticket_id).