Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with Atlassian-provided python script

Christel Gray
Contributor
May 21, 2025 edited

Hi All - I'm trying to run the script that was provided here: https://support.atlassian.com/jira/kb/bulk-add-users-to-groups-using-python-and-api/

But I keep getting this error: "KeyError: 'userid' at line 30

2025-05-21_15-38-49.png 2025-05-21_15-39-24.png 2025-05-21_15-40-12.png

I've checked my csv and the column name is correct (image attached).

I've made sure the python script and the csv file are in the same folder.

Any idea what I'm doing wrong?

 

 

 

1 answer

1 accepted

4 votes
Answer accepted
Christel Gray
Contributor
May 21, 2025

In case anyone comes across this error, the issue was the csv file saved as a UTF-8 BOM file. Changing it to UTF-8 made it run smoothly.

Charlie Misonne
Community Champion
May 22, 2025

Thanks for adding the solution to your own question!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
atlassian, likes for trees, atlassian community, social impact, tree planting campaign, community kudos, atlassian giving, environmental impact, sustainability, likes for good, atlassian social responsibility, community challenge

Make every click count—help us plant 50,000 trees! 🌳

Want to make your everyday Community actions directly contribute to reforestation? The Atlassian Community can achieve this goal by liking a post, attending an ACE, sending your peers kudos, and so much more!

Help us plant more trees
AUG Leaders

Atlassian Community Events