It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to create local admin in Bamboo?

I searched website. There is no place to tell me how to add a local admin in Bamboo. 

In Bamboo, all the users only show the name, group, email, there is no information about whether they are in which directory.

4 answers

1 accepted

5 votes
Answer accepted

Hello Jinjing,

In Bamboo, you have to go to "{{Bamboo administration >> Security >> User repositories}}" and select "{{Local users and groups}}". This will use Users and groups from Bamboo's internal directory.

Please, create all the users you want to have administration rights in Bamboo.

Go back to "{{Bamboo administration >> Security >> User repositories}}" and select "{{Users and groups from JIRA or Crowd}}" to be able to authenticate with Crowd once again.

Now, if you have an issue with Crowd and you are no longer able to authenticate your users against Bamboo, please:

  1. stop Bamboo
  2. open up <bamboo-home>/xml-data/configuration/atlassian-user.xml and replace its content with:

    &lt;atlassian-user&gt;
        &lt;repositories&gt;
            &lt;hibernate name="Hibernate Repository" key="hibernateRepository" description="Hibernate Repository" cache="true"/&gt;
        &lt;/repositories&gt;
    &lt;/atlassian-user&gt;

    This will allow the local users to log in. In case you don't remember the local admin credentials, refer to this page for resetting the admin password.

  3. start Bamboo

If you find this answer useful, I would kindly ask you to accept it so the same will be visible to others who might be facing the same issue you have inquired.

Thank you for your understanding.

Kind regards,
Rafael P. Sperafico
Atlassian Support

 

Thanks! It works great

Thank you so much :clap:

1 vote

Hello Jinjing,

Thank you for your question.

By default, Bamboo uses "bamboo-admin" group to grant administrator privileges to users that belong to this group. In case you want to grant administrator privileges to users from a different group, I would kindly suggest you on referring to the documentation mentioned by Jobin Kuruvilla:

Furthermore, please review Managing permissions documentation for "Controlling access to build plans" and "Controlling access to the Bamboo server".

If you find this answer useful, I would kindly ask you to accept it so the same will be visible to others who might be facing the same issue you have inquired.

Thank you for your understanding.

Kind regards,
Rafael P. Sperafico
Atlassian Support

 

@Rafael Sperafico Thanks for your answer! We have Crowd connecting all the other applications such as JIRA, Confluence, Stash, Bamboo, Fisheye. All these applications have Crowd as the user management server, and synced from Crowd. The motivation is we need to create local admin for each application, otherwise once Crowd crashed, there is no user could log in the applications. I have been able to created local admin in JIRA, Stash, Confluence successfully in the application internal directory. It seems Fisheye and Bamboo has no place to find the internal directory. I have create local user and add it to bamboo-admin group as described by @Jobin Kuruvilla [Go2Group]. However, this user was synchronized to Crowd and all the other applications after a while. It didn't happened in all the applications after I added local admin users successfully. I am not sure if this means this 'local' user is also authenticated through Crowd. I cannot test if this user could log in when the Crowd crashed

Local users shouldn't flow to Crowd. Are you sure it is not a duplicate user coming to Crowd via LDAP or one in Crowd internal directory itself?

@Jobin Kuruvilla [Go2Group] I am sure it is the same user I added through Bamboo, it synchronized into Crowd, and all the other applications connecting to Crowd.

I want to create Local Admin, not granting permissions to an existing user.

Create a user and make him an admin! That will be a local admin. There is only one root user, if you are referring to the admin user you created while deploying bamboo.

Im having the same problem but the action of selecting local users and groups and hitting Save as the first answer states "In Bamboo, you have to go to "{{Bamboo administration >> Security >> User repositories}}" and select "{{Local users and groups}}". This will use Users and groups from Bamboo's internal directory." 

It will immediately log you out and lock you out of Bamboo.  Then your screwed because you cant login via your external LDAP integration (because its not being used) and you cannot login via internal authentication as admin (because proposedly thats what your trying to do in your initial question anyway)

I just did this. How do you recover? Is there a way to set the database back?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bamboo

Unable to add or edit Bitbucket Cloud repository in Bamboo

On 31 May, a GDPR-related change went live in the Bitbucket Cloud API that resulted in users not being able to create or edit Bitbucket Cloud Linked repositories in Bamboo. This API update removed t...

1,066 views 2 7
Read article

Community Events

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

Events near you