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

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.png2025-05-21_15-39-24.png2025-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
AUG Leaders

Atlassian Community Events