Missing user email addresses in BitBucket application
Asked by Terry Harple:

I use crowd for Jira,Confluence and BitBucket.  
I use AD for authentication and crowd directory for group management.  
Under users, all users have email addresses.  
Under application BitBucket some users are missing email addresses.  
Attempts to update the missing email address via crowd-\> application -\> Users -\> \<user-name\> yields:  
Directory does not allow user modifications

How do I get crowd to re-sync with the data I see via crowd -\> users

Is this a crowd bug I should file or a case I should open.

Seems like some kind of corruption.

BTW same thing happens with a subset of confluence users?

It like it doesn't like certain email addresses? Yet these addresses don't look special?


Answers:
author: Marcin Kempa
body: Hi [@Terry Harple](/t5/user/viewprofilepage/user-id/1127053)! additionally to what [@AnnWorley](/t5/user/viewprofilepage/user-id/502040) suggested, you may also want to check how email attribute is mapped in you Crowd configuration. Maybe there is a chance that you are using some custom attribute name for that which this particular user does not have in you remote directory or have the email attribute set under different key? By default for Active Directory connector Crowd is using 'mail' attribute name for the user email.

You may check that under Crowd \> Directories \> Your Active Directory \> Configuration tab

Thanks,

Marcin Kempa

comments: author: AnnWorley
body: Here is a screen shot of the attribute Marcin is referring to:

![email.jpeg](https://community.atlassian.com/t5/image/serverpage/image-id/8609i7CEB4B802797B056/image-dimensions/516x427?v=v2 "email.jpeg")


author: AnnWorley
body: Hi Terry,

I understand that in Crowd, when you go to Application\>Bitbucket\>Users some of the users don't have email addresses. The same is happening with some of the Confluence users.

When you go to the Users menu, and search for the same users, the email addresses are there.

The email addresses originate in the LDAP directory. The LDAP directory does not accept updates from Crowd, that's why you cannot manually add the email addresses.

* Is there a possibility that the directory associated with Bitbucket is not the same one you are searching when you go to the Users menu? That would explain the discrepancies.
* If you check in the LDAP directory itself, Active Directory or OpenLDAP, etc, do the users that lack email addresses in Crowd all have email addresses in that system?

I look forward to hearing more about your case.

Thanks,

Ann

comments: author: Terry Harple
body: I am sorry I did not mention, I only use the LDAP server for Delegated authentication directory which I thought meant that all other info comes from the Internal crowd directory?  
Additionally when this happens, and I try to change the email address from say crowd -\> application -\> BitBucket -\> Users - \<User\> I get an error that says this directory is read only which is what I expect for LDAP DA Dir. But the email address is not really p/o that directory it really belongs to the Internal crowd directory.  
BTW I have my LDAP DA Directory 1st and crowd Internal 2nd both have authenticate true and directory aggregate groups selected.


author: AnnWorley
body: User attributes like email are pulled from the delegated directory when the user logs in, rather than during scheduled synchronizations, but they still reside in LDAP.

Please see: [The difference between connector and delegated LDAP user directories](https://confluence.atlassian.com/confkb/the-difference-between-connector-and-delegated-ldap-user-directories-648544872.html)

You can see the attributes that are pulled from LDAP in the Delegated Directory setup:

![emailattribute.png](https://community.atlassian.com/t5/image/serverpage/image-id/8758iE3C78778163B9510/image-dimensions/339x425?v=v2 "emailattribute.png")


Tags: email

user