Select to view content in your preferred language

Unable to create more than 3 users using users.create() function

218
1
Jump to solution
03-31-2025 07:46 PM
AFackler_NAPSG
Frequent Contributor

I developed a notebook a while back that will intake a similar csv to what "invite members with file" uses when you create a bunch of usernames at once, however I added onto this to automatically add the usernames to the proper groups based on their roles and assign licenses accordingly. It use to work like a charm, but now I have to have it run with a few thousand logins pretty soon (switching hub orgs) and ran into an issue where it will only create 3 logins and then fails on every other when there is no apparent change in the way the logins are set up. Below are some screenshots of the username creation part of the script that fails, the output, and the CSV being used. Has there been a recent change that I am not aware of, causing these problems? Or is there something in my code that is causing it?

Script that creates the logins:

AFackler_NAPSG_3-1743475577872.png

Error occurring (notice it only makes 3 logins, then the rest fail)

AFackler_NAPSG_1-1743475296045.png

CSV being used

AFackler_NAPSG_2-1743475372684.png

 

0 Kudos
1 Solution

Accepted Solutions
AFackler_NAPSG
Frequent Contributor

Ended up finding a solution to my own problem. I was using Python 11 in Notebooks when the original script was written in Python 10. Switching it to Python 10 in the Notebook's settings and re-running it fixed the problem

View solution in original post

0 Kudos
1 Reply
AFackler_NAPSG
Frequent Contributor

Ended up finding a solution to my own problem. I was using Python 11 in Notebooks when the original script was written in Python 10. Switching it to Python 10 in the Notebook's settings and re-running it fixed the problem

0 Kudos