- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2023 10:31 AM - edited 04-27-2023 11:24 AM
Hello!
I already have existing ServiceNow groups and users. I have an Excel spreadsheet that I need to update by adding members to groups. The challenge is that I want to map the user ID instead of the name to the target user in the group member table. I believe reference User is the required name to be able to import it. I do have the user name, but the problem is that some have more than 1 same user name or the username could be the unofficial first name that doesn't match the SN user name. That is why user ID is the safest approach. In transform map, how can I map the user ID from my Excel to a user in the group members table? Here is a sample spreadsheet that I want to use for the transform map.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2023 12:34 PM
Hello,
Sure, all you would need to do is to create your field mapping. Set your source field to User ID and make sure to set the Choice action to "ignore" so that new records don't get created by accident. Then set your target field to User and since it's a reference field set the Referenced value field name to "user_name" which is the field for User ID in the table.
Thanks,
Joe S

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2023 12:34 PM
Hello,
Sure, all you would need to do is to create your field mapping. Set your source field to User ID and make sure to set the Choice action to "ignore" so that new records don't get created by accident. Then set your target field to User and since it's a reference field set the Referenced value field name to "user_name" which is the field for User ID in the table.
Thanks,
Joe S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2023 12:57 PM - edited 04-27-2023 12:59 PM
I have tried that and it isn't working. Here are screenshots,

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2023 02:26 PM
I just noticed in your Transform map you're coalescing on the User ID and the Group Name. Is there a reason you're coalescing on both of those values? I ran through this in my PDI and only coalesced on the User ID and it worked as expected.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2023 02:47 PM
Sorry my bad, you do need to coalesce on both fields in order for the records to be inserted. I updated my PDI and re-ran the test and I now have 11 records inserted as expected. There are essentially no differences between what you have and what I have so not sure why mine is working.