Bulk importing users

Return to top

12 Comments

  • Kristen

    Hello @... and @...! I am trying to delete the phone numbers for all 23k end_users that we have. I wrote a script to be able to iterate through users, pull their user identity id if it is a phone number, and then delete it via API. However, I'm noticing despite a status code 204, in many cases, I still see the phone number from the UI, despite it no longer being available when I've queried it via API. On other occasions, deleting the user identity does remove the phone number from the UI. This leaves me to believe that sometimes phone numbers (not yet clear when) are stored on both the phone field of the user AND as a user identity, and that deleting user identity does not actually remove it from the user. It is really hard to get clarity on how you all are actually storing the phone number. Could someone from the Zendesk team please elucidate for me how to permanently delete phone numbers and/or hide it from our agents?

    0
  • Carl McDowell

    Hi @...,

    A phone number can be stored as a direct line or a shared line. We go into some more detail here: Understanding how phone numbers are linked to end-user profiles

    However I don't think that solves the issue you are facing, and it may be worth taking this into a ticket to figure out the answer.

    I'll reach out to you from the ticket I create about your issue. Once we find the solution we can post it back here.

    0
  • Beatriz Bravo Gallardo

    Hello, 
    We used to replace all our user's tag just with the csv, is there a simple way to have the overwriting behavior using the csv? 

    0
  • Dave Dyson
    Zendesk Community Manager

    Hi Beatriz,

    Unfortunately, updating users via CSV can only append new user tags, it cannot overwrite existing user tags. See Updating existing user profile data

    In order to bulk-update the user tags of a number of users at once, you'd need to use the API: Create Or Update Many Users

    If you haven't used the API before, this introduction could be helpful: Introduction

    -1
  • CJ Johnson

    What about groups? They are not mentioned. 

    0
  • CJ Johnson

    Zendesk Support tells me it's actually "impossible" to update groups using this method. If it's not impossible (which I suspect it's not), can you please update this article with some clearer instructions on how to import restrictions like groups? 

    0
  • Brett Bowser
    Zendesk Community Manager

    Hey CJ, 

    You are correct and you cannot set an agent's group via CSV bulk import. There are only two options available for updating a users group:

    • One would be to manually set the agent's group via the agent interface.
    • The other one would be to use our group memberships API endpoint, although this would involve a bit of code work on your part.

    Since this article is specifically addressing bulk importing users, I'm thinking we will want to create a separate article that discusses how someone can update group assignments in bulk outside of a CSV file.

    Appreciate you bringing this to our attention!

    -1
  • Heather Rommel
    Community Moderator
    The Product Manager Whisperer - 2021

    Hi CJ Johnson,

    I thought I'd mention one of my favorite ways to update Agents' groups is to go to Admin -> Manage -> People and select Groups. Or go here: https://YOURDOMAIN.zendesk.com/agent/admin/people and select Groups

    Select the Group you want to update - and click edit all the way to the right of the screen. There, you can simply check the Agents you want to add to a group.

    0
  • CJ Johnson

    @...
    Maybe it would be good then, to remove all the references in this article that say you can do this? Based on the article comments this certainly used to be possible, so it's extremely confusing to have left it in. This deprecation/removal does not appear to be mentioned in any release notes either. 

    0
  • CJ Johnson

    @...

    Unfortunately, that's a non-starter. I'm not going to click 100-200 names by hand every time I need to make mass updates, one because that's really tedious, and two, because it's prone to human error. Getting a CSV import file with errors on the ones that failed for this task is highly, highly preferable, although given that it was apparently removed, and would overwrite, not append groups, previously, I'm not sure that really met my needs either. I'll likely end up spending some time writing out some API scripts to accomplish this task, though it won't be quite as nice or accessible to less technical folks. 

    0
  • CJ Johnson

    This article is *still* outdated and claims you can update groups using the import. 

    0
  • Dave Dyson
    Zendesk Community Manager

    Hi CJ –

    Thanks for your feedback here, we've adjusted the text about on groups in agent restrictions above, and removed Devan's response from last year. Hopefully that will make things more clear (and provide some guidance on how you can add agents to groups).

    0

Please sign in to leave a comment.

Powered by Zendesk