Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to retrieve Crowd password last updated value?

Is there a way to retrieve the 'passwordLastChanged' value from the crowd internal user database, or find informaion on how it is calculated. We would like to poll this value or recalculate it from the underlying MySQL database in order to notify users of passwords expiring soon.

We had something, but with the crowd 2.7.1 something in the behaivor broke that.

2 answers

1 accepted

0 votes
Answer accepted

You can extract the password changed attribute from the cwd_user_attribute table:

select * from cwd_user_attribute inner join cwd_user
on cwd_user_attribute.user_id = cwd_user.id
where attribute_name = 'passwordLastChanged';

Note that this information is only recorded for Crowd internal directories; LDAP (whether cached, uncached, and delegated authentication) connectors do not store this information for users because user authentication in these cases is done by sending the user's password to the LDAP server for verification. Hence, in those cases you'll have to check your LDAP server for the details (this may not apply to you, but noting it here to save future searchers some time).

0 votes

Hi Derek,

This value in written in Unix type and you should be able to retrieve the exact date by following the advices in this answer: https://answers.atlassian.com/questions/97528/how-can-an-admin-determine-when-someone-s-password-last-changed-in-crowd

From the answer above: "Solution: Remove the last three digits from Crowd's timestamps, then visit epochconverter.comin order to determine the date."

I hope this helps!

Regards,

Rodrigo

I recognize the epoch time. I am looking for how to retrieve the passwordLastChanged value from the application (API) or where it is stored in the Database so I can poll it. Nothing in published schema looks to reflect this.

... also, your answer really doesn't have anything to do with my actual question.

Hi Derek,

In addition to Caspar's answer, I couldn't find a way to retrieve this information using API

You may want to check the resources thought.

Apologies, but since you have asked "...or find informaion on how it is calculated" I was trying to explain how this information is stored.

I hope this helps.

Cheers,

Rodrigo

I can see that interpretation, thanks!

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira Service Management

JSM June Challenge #2: Share how your business teams became ITSM rockstars

For JSM June Challenge #2, share how your non-technical teams like HR, legal, marketing, finance, and beyond started using Jira Service Management! Tell us: Did they ask to start using it or...

168 views 6 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you