Recent searches
No recent searches

Calvin Ratsavong
Joined Jan 13, 2024
·
Last activity Jan 13, 2024
Following
0
Follower
1
Total activity
2
Votes
0
Subscription
1
ACTIVITY OVERVIEW
BADGES
ARTICLES
POSTS
COMMUNITY COMMENTS
ARTICLE COMMENTS
ACTIVITY OVERVIEW
Latest activity by Calvin Ratsavong
Calvin Ratsavong commented,
CommentCustomer management and profiles
Here's how I accomplished bulk user merges -
- Start by exporting your users using the List users API endpoint. Reference on how to do this can be found here - https://developer.zendesk.com/api-reference/ticketing/users/users/#list-users. I dumped my users into zendesk-users.json.
- Use jq or some other tool to filter your file to zendesk-users-filtered.json to only include "id" and "email" as these are your only relevant fields.
- Merge objects to include source-domain id, destination-domain id, and destination email. I decided to add logic to my script that skips merges for IDs that have a source-domain id but not a destination-domain id - this is to overlook merging of inactivated users who have null destination-domain id.
- Use Python to consume the JSON/CSV file you have to iterate through each object until all users are merged. Add output handling to show you that users have been merged into [destination email] - this will also show you if you tried to merge a user that is not an end user (eg. admin, staff, etc.)
I can post the scripts I created here if anyone wants to take a look.
View comment · Posted Jan 13, 2024 · Calvin Ratsavong
0
Followers
3
Votes
0
Comments