How to create local admin in Bamboo?
Asked by Jinjing:

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.


Answers:
author: rsperafico
body: 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](https://confluence.atlassian.com/display/BAMBOO/Restoring+passwords+to+recover+admin+users)* *.*
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

comments: author: Jinjing
body: Thanks! It works great


author: Ansar Rezaei
body: Thank you so much :clap:


author: rsperafico
body: 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](https://answers.atlassian.com/questions/users?username=jobin%20kuruvilla):

* [Granting global permissions to users or groups](https://confluence.atlassian.com/display/BAMBOO/Granting+global+permissions+to+users+or+groups)

Furthermore, please review [Managing permissions](https://confluence.atlassian.com/display/BAMBOO/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

comments: author: Jinjing
body: @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


author: Jobin Kuruvilla [Adaptavist]
body: 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?


author: Jinjing
body: @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.


author: Mitch Gann
body: 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)

comments: author: Christina Ferreri
body: I just did this. How do you recover? Is there a way to set the database back?


author: Mitch Gann
body: I had to set the internal admin account via database update.

<https://confluence.atlassian.com/bamboo/restoring-passwords-to-recover-admin-users-289277354.html>


author: Jobin Kuruvilla [Adaptavist]
body: Check out <https://confluence.atlassian.com/display/BAMBOO/Granting+global+permissions+to+users+or+groups>

comments: author: Jinjing
body: I want to create Local Admin, not granting permissions to an existing user.


author: Jobin Kuruvilla [Adaptavist]
body: 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.


Tags: bamboo-administration