Recent searches


No recent searches

How to Show/Hide HTML content based on user's custom fields



Posted Nov 24, 2023

We are currently exploring the capability to selectively display or hide specific HTML content within our Zendesk Guide upon attributes we assign to our customers, derived from a sync with Salesforce.

The attribute in question is the User Role field, situated on the user's page, which encapsulates a comma-separated string denoting the user's roles in our backend system—namely, 'Agent,' 'Admin,' 'Owner,' or 'Supervisor.'

In our attempt to retrieve this information, we employed the GET /api/v2/users/me endpoint, aiming to procure the roles assigned to the current user. However, we found out that full information is returned back to the browser if the logged in user is a "Zendesk Agent", but the full information is not returned to the browser if the logged in user is a "Zendesk End-User".

Are there any viable workarounds or alternative approaches to overcome this limitation?


1

1

1 comment

image avatar

이지훈(maclaude)

Zendesk Luminary

+1

0


Please sign in to leave a comment.

Didn't find what you're looking for?

New post