Our directory doesn't supply a valid e-mail address, but I'd like to create one automatically when Crowd synchronizes with AD. It would simple append a suffix to the user's ID. How would I go about doing this?
You would actually have to implement/extend your own version of the com.atlassian.crowd.directory.ldap.mapperUserContextMapper, and then change the SpringLdapConnector to use your ContextMapper on its call for the getUserContextMapper().
So it isn't exactly 'easy' at present at the moment to provide this type of feature.
We have pondered with allowing users to provide 'programable attributes' for directory configuration:
eg: emailAddress = ${userName}@mycompany.com
Where userName is the value pulled from the user for their name.
Cheers,
Justin
Hi Ali, the only thing I can think is to create a script that does that, or creating a plugin using Atlassian API. Here is the documentation about the API. There's a method called getEmailAddress() that can be used.
Hope it helps!
Kind Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks, Bruna!
Would that be using, for example, Script Runner for scripting using the Atlassian API? I don't see how to script anything but JIRA. I do see something about using the various REST APIs:
https://developer.atlassian.com/display/CROWDDEV/Crowd+REST+APIs
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.