Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

How can I populate fields in Crowd when a user doesn't have a field value in LDAP / Active Directory?

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?

2 answers

2 votes
JustinK
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Sep 02, 2013

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

The "programmable attributes" feature would be great! Of course, I'm new to Crowd admin, but it seems like a great feature. :-)

1 vote
Bruna Griebeler
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Sep 01, 2013

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

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events