image for site

Assigning Macros via Zendesk API to Users or Groups

Learn how to use the Zendesk API to assign macros to specific users or groups by setting the restriction parameter.

Can I use the Zendesk API to assign a macro to a user or group?

Yes, you can use the Zendesk Macro API to assign a macro to a user or group. To do this, you need to add an additional key to the restriction parameter when creating the macro. This involves specifying the type as either 'Group' or 'User' and providing the ID of the group or user.

The restriction object is crucial here, as it defines who can access the macro. If you want all agents to have access, you can simply omit this property. However, if you want to restrict access, you must specify the type and the corresponding ID. For more detailed information, you can refer to theoriginal Zendesk help article.


More related questions

What is the restriction object in Zendesk Macro API?

The restriction object in the Zendesk Macro API defines who can access a macro. It is an optional parameter that you can include when creating a macro. The restriction object has two main properties: 'type' and 'id'. The 'type' is required and can…

How do I restrict macro access to specific agents in Zendesk?

To restrict macro access to specific agents in Zendesk, you need to use the restriction object in the Macro API. This involves setting the 'type' to 'User' and providing the numeric ID of the user. By doing this, only the specified user will have…

Can I assign a macro to multiple groups in Zendesk?

Yes, you can assign a macro to multiple groups in Zendesk by using the 'ids' property in the restriction object. This allows you to specify the numeric IDs of multiple groups that should have access to the macro. By listing the IDs of the groups in…

Interested indeflectingover 70% of your Zendesk support tickets?

Our AI customer support agent is here to help. Trained on all your help docs, installed directly into your Zendesk account, it can be used to automate customer replies for tickets or live chat. Learn more below.
Zendesk logo

Zendesk Support Tickets

Receive new tickets by email or a support form? This integration is for you.
My AskAI integrated within Zendesk to deflect support tickets
Learn about our Zendesk ticket integration
Zendesk logo

Zendesk Messaging (live chat)

Using Zendesk's Messaging widget on your site for live chat? This integration is for you.
My AskAI integrated within Zendesk to deflect customer support live chat conversations
Learn about our Zendesk Messaging integration

Join1,000+ companies reducing their support costs and freeing up support agents for more important work

Vestd company logo — Customer of My AskAI's AI customer support agents
Genesis company logo — Customer of My AskAI's AI customer support agents
Zinc company logo — Customer of My AskAI's AI customer support agents
Customer.io company logo — Customer of My AskAI's AI customer support agents
Zeffy company logo — Customer of My AskAI's AI customer support agents
NHS company logo — Customer of My AskAI's AI customer support agents
Kontakt.io company logo — Customer of My AskAI's AI customer support agents

Reduce support costs.Spend more time on customer success.

Our AI customer support agents are already used by 👇
Companies using AI assistants on their websites