How do I link user repositories from jira to bamboo?

Brendan Fosberry January 26, 2012

I followed the Here Be Dragons tutorial which covered everything for my other apps (fisheye, jira, confluence) but for bamboo it creates the application link, I specify to share users however I can't log in locally with a jira user and jira users do not show up in the bamboo user list.

I tried using the previously unmentioned user repositories link which requires you specify an application name and password which is not something you can configure in Jira.

1) Is it possible to use jira for user management for bamboo?

2) If so how do I set it up because apparently the jira application link setup does not work despite completing without error in the logs

All attempts to lnik to a jira user repo in bamboo using the user repositories link have failed with exceptions in the log due to failed authentication, NOT because it considers my Jira server not to be a valid crowd rest service. Is there a specific setting I need to be using for user and password (e.g. system login, existing jira user, hardcoded value?)

thanks

Brendan

8 answers

1 accepted

11 votes
Answer accepted
Brendan Fosberry January 26, 2012

Found the issue. The atlassian guide does not mention this however it is a required step.

Before configuring the user repo in bamboo to to your jira instance

Click on Admiistration -> Users -> Groups and add a bamboo-admin group. Add at least one jira user server user to this group.

Click on Users -> Jira User Server and add an entry for bamboo with a username and password along with any IPs required.

Go to your bamboo instance, click on Administration -> User Repositories and enter the details you just used (application name and password)

onstottj March 16, 2012

Brendan, that information was VERY helpful! I had the same issue and this solved it.

It would be great if the Bamboo documentation could be updated with this information. It is not self explanatory.

Arthur Garza June 12, 2014

Thank you so much! This is definitely not in the documentation..just wanted to comment on here for recognition of this answer.

Aamir Dohadwala February 5, 2015

Note this isn't documented in the main Atlassian Bamboo install or setup docs (currently 5.7), but it I did find it documented in the troubleshooting section here: https://confluence.atlassian.com/display/BAMKB/JIRA+as+a+User+Repository+for+Bamboo+-+Tutorial

Andy Runge September 10, 2015

Thanks, works like a charm!

2 votes
Julien Bouetard February 17, 2013

Hi,

I am trying to set up the external repository on bamboo 4.3.1 hosted on premise. The external repository is on JIRA ondemand.

I followed the steps above, but I still have the following issue:

2013-02-18 14:16:57,507 INFO [http-0.0.0.0-8443-5] [HttpMethodDirector] Failure authenticating with BASIC 'Crowd REST Service'@unestudio.jira.com:443
2013-02-18 14:16:57,520 WARN [http-0.0.0.0-8443-5] [UserManagement] Failed to change the active user repository
com.atlassian.user.configuration.ConfigurationException: com.atlassian.crowd.exception.InvalidAuthenticationException: Application failed to authenticate

Thanks for any help,

Julien

Christian Marth October 23, 2013

I'm trying to do the same thing and get the same error as well

StevenHawkins February 9, 2016

I still haven't found this to be possible, would be very helpful

1 vote
Jeffery Wu April 22, 2012

Steps to migrate JIRA and Bamboo for user management

1) create application link between JIRA and Bamboo

2) user management with JIRA

Step 1 create bamboo-admin group in JIRA and add jira-admin to this group

Step 2 create an entity in JIRA user server with the required appname and passwd

Step 3 add jira-admin user to bamboo-admin group in Bamboo

Step 4 login Bamboo with jira-admin, Administrator->User Repository->input the appname and passwd typed in JIRA

0 votes
Keith Weinheimer August 10, 2014

I kept getting error about REST user service not found with URL of

http://myhost:8080/crowdor http://myhost:8080/jirafor my Jira server URL

I changed it to http://myhost:8080and it works for Jira 6.2.5 and Bamboo 5.4.2

0 votes
Anthony Wentzel January 31, 2014

Brendan Fosberry ·

Thank you! This should be listed in the JIRA and Bamboo documentation. Worked like a charm!

0 votes
Brendan Fosberry January 26, 2012

Btw I have a crowd license but I'd rather not use it if I can avoid it

0 votes
Jobin Kuruvilla [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 26, 2012

Try giving the JIRA url instead of Crowd. http://confluence.atlassian.com/display/BAMBOO/Integrating+Bamboo+with+Crowd says:

If you have JIRA 4.3 or later, you can also manage your users via JIRA. The process for connecting Bamboo to JIRA for user management is the same as the process for connecting Bamboo to Crowd for user management (described below).

Brendan Fosberry January 26, 2012

thanks for the response. I have a crown license but it is not running so I have only been connecting to jira.

Both are running on the same server in different tomcat instance via apapche virtualhosts on different ports.

I have tried using the urls (all of which connect to jira)

jira.mydomain.com

mydomain.com:8080

localhost:8080

Is there a specific connection URL I need to use beyond the hostname?

0 votes
Brendan Fosberry January 26, 2012

A good example of the issue is in the documentation for my version of bamboo:

http://confluence.atlassian.com/display/BAMBOO/Working+with+External+User+Repositories

This lists it can be used with jira but only shows how to set it up with crowd

Suggest an answer

Log in or Sign up to answer