Hello,
I want to set a user in the user management of jira from "inactive" to "active".
How can i realize this with code? I only found similiar questions, which are about deactivating a user after a period of time.
Thanks in advance!
See https://library.adaptavist.com/entity/deactivate-users
You just need to amend some of the wording that's in the messages, and change the "false" to "true" in the line that sets the active/inactive flag
Can you suggest the script for confluence where we can activate users.
Have a look at the library script - there's a line that deactivates a user with a function call to deactivate the user. Change the call to activate instead.
In case anyone else is looking for a solution, "activate" got moved to a different class DisabledUserManager, which has an enableUser() method.
Of course, there's a Library example for this.
Thanks ScriptRunner
It looks like you're new here. Sign in or register to get started.