We created custom user fields in our instance and implemented a process to hydrate them.
The end goal for us is for end users to consult a specific article in Guide and see the values of these user fields.
I couldn't find any built-in solution for that:
- Articles don't seem to support a token-based approach where it'd be swapped server side by Zendesk.
- I looked at Guide templates, but none of the available helpers seem to expose user fields.
We tried building a custom solution built in the theme that performs the following steps:
- We then programmatically replace the content of specific HTML elements and inject the correct values.
While this solution worked during our testing, we found that the /api/v2/users/me endpoint only returns a subset of the data for end users, excluding the user fields. We found after the fact that this is documented here: https://developer.zendesk.com/rest_api/docs/support/users#:~:text=Responses%20will%20vary%20depending%20on%20the%20role%20of%20the%20client%20making%20the%20request.
At this stage, we're stuck and can't come up with any other viable solutions.
Any chance you could help?