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
Hello,
Can you suggest the script for confluence where we can activate users.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.