Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,364,559
Community Members
 
Community Events
168
Community Groups

How to restore users in the bamboo-admin group - (deleted by accident by not selecting)

We deleted by accident the bamboo admin users by adding an extra user and not selecting all the users in the "existingusers in group" pannel.

We cannot restore the database in the production environment so we want to restore to another server and manueally retrieve all the users in the postgresql tables.

Can anybody help with the location of the tables or provide us with a query that gives us the users in the bamboo-admin group.

1 answer

0 votes

Look at LOCAL_MEMBERS table

Only 1 local user which is in the admin group.

In our acceptance environment it's the same. i think that the rest are AD users.

then check EXTERNAL_MEMBERS table

Thanks Alexey.

I started with that table and found out the rest ! Thanks in advance.

Here's my query that lists the groups and their members:

SELECT em.extentityid, em.groupid, ee.name, ee.type, gr.groupname
 FROM public.external_members em 
 inner join public.groups gr on (em.groupid=gr.id)
 inner join public.external_entities ee on (em.extentityid=ee.id)
 order by gr.groupname, ee.name;

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events