I am trying to bulk delete users through script runner(Userservice.removeUser).
Getting an error like Cannot delete user,the user directory is read-only.I have LDAP directories configured for user management.What does this error mean.
Appreciate any support provided.
Thanks in advance.
an external user directory like LDAP can be either configured as read/write or read/only-directory.
The error message suggests you are in fact using a LDAP directory that is read-only.
Therefore Script Runner cannot delete the user - this is normal behaviour.
Could you please navigate to "user directories"
to check if the directory is a read-only one?
With being read-only there is no way but to do it in LDAP.
If you can switch to read/write would need further knowledge of your LDAP backend, which we do not have here, and it would be too risky to recommend anything without knowing the infrastructure.
You really need to configure the users in LDAP.
The basic idea is with read/write directories that you can "write" to them, f.e. disable users, yes.
If this is an option for your environment at all needs further inspection on your side.
In any case please review the link with documentation I posted above earlier.
Catch up with Atlassian Product Managers in our 2020 Demo Den round-up! From Advanced Roadmaps to Code in Jira to Next-Gen Workflows, check out the videos below to help up-level your work in the new ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events