zendesk / zendesk_api_client_php

Official Zendesk API v2 client library for PHP
336 stars 259 forks source link

OAuth with Impersonate Scope #361

Closed nightfire8199 closed 4 months ago

nightfire8199 commented 6 years ago

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).

ecoologic commented 5 months ago

Hi,

thank you for your request, are you still interested in a solution for this issue?

ecoologic commented 4 months ago

Closing due to inactivity. Re-open if needed.