Admin-Auth in Zendesk App via token is not possible | Community
Skip to main content

Admin-Auth in Zendesk App via token is not possible

  • February 6, 2026
  • 1 reply
  • 0 views

Sebastian13

Hello,

 

I tried to create a function, that is via Zendesk API, only available for admins. In order to allow the functionality for agents, I added a token into the app, via secure settings, and used this for the API call.

 

Strange enough, it works fine for admins, but not anymore for agents. Authorization denied. Changing the role of the agent to Admin, makes it work.

 

Now I thought, maybe with a bearer token, but no, it is the same thing.

 

The strange thing is, it should work with a third party app, which I will do now. But what is this odd setup? Why do I have to use a third party to do the exact same thing? Why is one allowed and not the other?

 

Thank you
Sebastian

1 reply

Ahmed11
  • February 9, 2026

Hi @sebastian13 ,

Requests to Zendesk APIs are always made from the browser, regardless of the cors option. You can't make a request to a Zendesk API using a Zendesk proxy server.

I guess it is working for admins because their session is already authenticated in browser, not because the secure token was fetched successfully.

https://developer.zendesk.com/documentation/apps/app-developer-guide/making-api-requests-from-a-zendesk-app/#making-a-zendesk-api-request

 

If you let me know your use case, maybe we can come up with a workaround.