You are not logged in.
Pages: 1
When we import AD users by script ldapimport.groovy, users imported are found beneath external OU. All imported users are "locked", meaning that I can not edit it. How to amend ldapimport.groovy to enable imported users attributes editing (e.g. title or email).
Thanks
Milan
Offline
Hi milans,
this is done in the script with umNode.setWriteProtection(true);
Since the ldapimport.groovy is meant to be used regularly, you should check what happens when you edit your user and run again the ldapimport.groovy.
If you want to manually remove the write protection, you can edit the records in the table RS_USERMANAGER_NODE and set flags=0.
Cheers,
Eduardo
Offline
Hello Eduardo,
I have tried changing umNode.setWriteProtection(true); to umNode.setWriteProtection(false);, and I have reimported AD users. But they are still locked. Or should I just remove this line from ldapimport.groovy script?
Best regards
Milan
Offline
Hello milans,
I reconstructed your situation and it works fine with my script.
You have just to turn the umNode.setWriteProtection(true); - flag to false. The script will automatically update this property of the object at next run.
If you already set it as you said it means there are other changes you should have done.
Try to update your flags manually in the db as eduardo described above or post please your script for checking.
Best regards,
Rodion
Offline
Hello Rodion,
I tried again, and it works.
Thank you!
Offline
Hello Rodion,
I tried again, and it works.
Thank you!
I just tried it and got it to work too!
Last edited by Shutter (2021-10-22 15:24:31)
Offline
Pages: 1