Can anyone please confirm (or not) whether Tyler's script is up-to-date for JIRA 4.0?
What that sql does is rename a user... there is a lot of info here: https://jira.atlassian.com/browse/JRA-1549 which is more definitive than the old forums.
If your question is specifically about AD then I'd say no, that is not a good resource, but I'm not really sure what you're trying to do. Is it rename a user or integrate with AD?
Hi Jamie thanks for getting back on this (I hadn't realised it wasn't still a forum). The question related to an answer posted by Tyler Roobins relating to changing Active Directories - just wanted to know whether his script would still be valid for JIRA 4.0:-
Tyler Robbins |
Posts: 5
Registered: 08/13/09
Re: The how - to of active directory authentication / integration Posted: Jul 14, 2010 1:30 PM ![]() |
|||
I was looking for a simpler way to migrate users over from local Jira accounts to Active Directory, so I wrote this SQL script below that can be run in SQL server or as a stored proc. We are on 3.13.4 with a SQL backend, could not say if this works for more recent versions.
Just replace the user_local with the original username and user_ad with the new AD username and execute it for each user. From my testing, you can log in with the AD account immediately after running the script, but to properly associate the user to his projects I needed to restart Jira. And to make their existing assignments show on the Home Page, I had to run the Jira reindex.
declare @old_name varchar(20) declare @new_name varchar(20) set @old_name = 'user_local' set @new_name = 'user_ad' print 'old name = ' + @old_name update jiraschema.changegroup set AUTHOR=@new_name where AUTHOR=@old_name |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Jamie - just the link I needed. We're migrating from our own AD to the parent company's AD, so just wanted confirmation of which tables and columns to change at 4.0 (all usernames and emails will change).
Thanks also for Groovy-runner - it's been incredibly useful
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you give a bit of context, eg what is "Tyler's script"?
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.