最近搜索


没有最近搜索

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



已于 2023年11月24日 发布

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 条评论

image avatar

이지훈(maclaude)

Zendesk Luminary

+1

0


请先登录再写评论。

找不到所需的内容?

新建帖子