Just paste your data correctly into the users.csv and config.xml and execute the program.
This tool is executed locally and uses the Nextcloud API on your instance.
Do you know if this will work with a âsnapâ install of Nextcloud? Iâm getting the following error:
HTTPSConnectionPool(host=âexample.comâ, port=443): Max retries exceeded with url: /ocs/v1.php/cloud/users (Caused by NewConnectionError(â<urllib3.connection.VerifiedHTTPSConnection object at 0x0000020B989262E8>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused itâ))
The CURL request could not be performed.
I did not try it with a snap install, but since it uses the NC API, it should work.
Do you use a self signed certificate?
Or a plain HTTP connection?
It will only work with HTTPS connections on port 443 i guess. And I did not try it with a self signed cert
Seeing the WinError: do you have a linux machine running somewhere? Maybe as virtual machine? You could try on linux, maybe some windows-voodoo is blocking somethingâŠ
Cool, it worked for me now! But I have to provide passwords, otherwise I get this error:
Traceback (most recent call last):
File ânc-userimporter.pyâ, line 94, in
IndexError: string index out of range
[31114] Failed to execute script nc-userimporter
Hi
I just tried but the script says that the users.csv file doesnât exist. Yet it is there, in its place, at the same level as the scriptâŠ
Where is the error? Encoding (UTF-8, LF) ? Should I keep the first line of the csv file (username;displayname;âŠ)?
Thanks !
âdoesnât existâ means that the file couldnât be found or it cannot be accessed due to missing access rights. Please describe in detail under which os and user youâre running the script, show the file access rights of the cvs file and which command you are executing.
Traceback (most recent call last):
File ânc-userimporter.pyâ, line 84, in
File ââ, line 1, in
NameError: name âfalseâ is not defined
[10808] Failed to execute script nc-userimporter
I am running on Windows 10 using the supplied windows exe. Iâve double checked the config file and csv, everything seems to be in order.
Hi, I have the same problem.
I use the executable on macOS 10.14.6.
I changed the permissions and tried with a minimal csv file (with 2 users) to test.
What can I do? Please help me, I have 200 users to importâŠ
âdoesnât existâ means that the file couldnât be found or it cannot be accessed due to missing access rights. Please describe IN DETAIL under which user youâre running the script, show the file access rights of the cvs file and which command you are executing.
Ok, thank you very much for this reminder (which you had already given, excuse me).
I tried it again differently and it works now.
My mistake was that I was launching the nc-userimport executable with a double-click as indicated by the readme on Github. By running it with the command ./nc-userimport it works perfectly.
Iâm a novice with the terminal but Iâm constantly learning
Your comment put me on the right track!