Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Apple TV 4K Copy 25@0 5x

Organization Cleanup

This app will help you clean up your organizations in Zendesk.

Cleanup your Zendesk organizations by removing all users with a non-matching email domain, or by adding users with a matching domain.

This app is a showcase from the article Cleaning up Zendesk Organisations with a sidebar app

Demo Data

⚠️ Before running these commands, remember this note about Zendesk API on Create or Update Many Users endpoint:

Note: To protect the data in your Zendesk account, bulk user imports are not enabled by default in Zendesk accounts. The account owner must contact Zendesk Customer Support to enable the imports. A 403 Forbidden error is returned if data imports are not enabled.

Avengers

curl --location 'https://{subdomain}.zendesk.com/api/v2/users/create_or_update_many' \
--header 'Authorization: Basic {Base64(username:token)}' \
--header 'Content-Type: application/json' \
--data-raw '{"users":[
    {"name":"Iron Man","email":"[email protected]","tags":["org_demo"]},
    {"name":"Captain America","email":"[email protected]","tags":["org_demo"]},
    {"name":"The Hulk","email":"[email protected]","tags":["org_demo"]},
    {"name":"Spider-Man","email":"[email protected]","tags":["org_demo"]},
    {"name":"Black Panther","email":"[email protected]","tags":["org_demo"]},
    {"name":"Winter Soldier","email":"[email protected]","tags":["org_demo"]}
]}'

avengers_2

Seven Dwarfs

curl --location 'https://{subdomain}.zendesk.com/api/v2/users/create_or_update_many' \
--header 'Authorization: Basic {Base64(username:token)}' \
--header 'Content-Type: application/json' \
--data-raw '{"users":[
    {"name":"Sleepy","email":"[email protected]","tags":["org_demo"]},
    {"name":"Dopey","email":"[email protected]","tags":["org_demo"]},
    {"name":"Doc","email":"[email protected]","tags":["org_demo"]},
    {"name":"Happy","email":"[email protected]","tags":["org_demo"]},
    {"name":"Sneezy","email":"[email protected]","tags":["org_demo"]},
    {"name":"Grumpy","email":"[email protected]","tags":["org_demo"]},
    {"name":"Bashful","email":"[email protected]","tags":["org_demo"]}
]}'

dwarfs_2

About

This app will help you clean up your organizations in Zendesk

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages