Query group_id to string mapping via api

Hi There,

I am trying to add group_ids to my tickets but I want to query all available groupids and their string values. How do I do that? I am trying to avoid hard-coding the group-ids in my code.

Thanks
Kartik

Hi @Kartik_Sundararajan

Welcome to the community

Good day!

You can use the API endpoint https://mydomain.freshdesk.com/api/v2/groups/ to get the list of groups and their information. You can check out the API Documentation to get more information.

Hope it helps you.

Thanks

Thank you. That helped but it needs the api user to be an admin to get the group information. Is it possible to read that data without admin access?

Thanks
Kartik

Hi @Kartik_Sundararajan

As per documentation It seems that non-admin users can’t able to access the Group API. Please check out the API Documentation of Note Section.

Please write your query to support@freshdesk.com. to get more information on this.

Hope it helps

Thanks