Bamboo does not send emails to AD security groups or distribution groups
Asked by Chris:

Hello,

I'm trying to set up a notification in Bamboo to send an email to a specific group for a deployment job, but no one in that group receives an email. I've tested that the email settings are correct. INDIVIDUAL users are able to receive emails, just not the group.

I've tried everything. I have tried to set up the notification to send to a few different groups with no luck. I've also tried to send the notification to just the email address of the distribution group(instead of the group itself), with no luck. I then tried to send a test email (from the admin settings) to the same email address and the group does not receive the email, but an individual email address does.

Any Ideas? Am I doing something wrong?

Thanks,

Chris


Answers:
author: Ron Chan
body: It is supported because we use Crowd and have deployment notifications to both users and groups.

I'll have to ponder this one...


author: Ron Chan
body: So I'm assuming you've already gone through [](https://confluence.atlassian.com/display/BAMBOO/Integrating+Bamboo+with+LDAP)<https://confluence.atlassian.com/display/BAMBOO/Integrating+Bamboo+with+LDAP>?

comments: author: Chris
body: Correct. I'm able to authenticate using my LDAP credentials and all the external users and groups I need to show up, do show up.

The problem is that when I try to use one of those external groups in a notification, it does not send an email to the users in that group. Is that even supported? Do they have to be local bamboo groups?


author: Ron Chan
body: Need more info, i.e. bamboo version? are you using Crowd?

comments: author: Chris
body: Bamboo version is 5.3.  

I'm just using the custom user repository options. Below is the configuration in atlassian-user. For obvious reasons, I've changed the more sensitive infromation.

```
&lt;atlassian-user&gt;    &lt;repositories&gt;        &lt;ldap key="ldapRepository" name="AD" cache="true"&gt;&lt;host&gt;server.domain.net&lt;/host&gt;&lt;port&gt;389&lt;/port&gt;&lt;securityPrincipal&gt;CN=user-account,OU=Some OU,OU=OU,OU=OU,OU=OU,OU=Main OU,DC=domain,DC=net&lt;/securityPrincipal&gt;&lt;securityCredential&gt;password&lt;/securityCredential&gt;&lt;securityProtocol&gt;plain&lt;/securityProtocol&gt;&lt;securityAuthentication&gt;simple&lt;/securityAuthentication&gt;&lt;baseContext&gt;OU=OU,DC=domain,C=net&lt;/baseContext&gt;            &lt;baseUserNamespace&gt;OU=OU.,OU=OU,OU=Main OU,DC=domain,DC=net&lt;/baseUserNamespace&gt;&lt;baseGroupNamespace&gt;OU=OU,OU=Main OU,DC=domain,DC=net&lt;/baseGroupNamespace&gt;&lt;usernameAttribute&gt;sAMAccountName&lt;/usernameAttribute&gt;&lt;userSearchFilter&gt;(objectClass=user)&lt;/userSearchFilter&gt;&lt;firstnameAttribute&gt;givenname&lt;/firstnameAttribute&gt;&lt;surnameAttribute&gt;sn&lt;/surnameAttribute&gt;&lt;emailAttribute&gt;mail&lt;/emailAttribute&gt;&lt;groupnameAttribute&gt;cn&lt;/groupnameAttribute&gt;&lt;groupSearchFilter&gt;(objectClass=group)&lt;/groupSearchFilter&gt;&lt;membershipAttribute&gt;member&lt;/membershipAttribute&gt;&lt;userSearchAllDepths&gt;true&lt;/userSearchAllDepths&gt;&lt;groupSearchAllDepths&gt;true&lt;/groupSearchAllDepths&gt;&lt;/ldap&gt;    &lt;/repositories&gt;&lt;/atlassian-user&gt;
```


author: Ron Chan
body: Chris,

How are your users/groups currently managed in Bamboo?

comments: author: Chris
body: They are being managed through LDAP


Tags: bamboo-administration