Difference between revisions of "List of accounts with their last password change date"

(Resolution)
Line 19: Line 19:
 
The password modified time is in the format:
 
The password modified time is in the format:
 
year, month, date, hours, minutes and seconds: '''yyyyMMddHHmmssZ'''
 
year, month, date, hours, minutes and seconds: '''yyyyMMddHHmmssZ'''
 +
 +
Example of the output:
 +
<pre>mail: admin@zimbra.io
 +
mail: root@zimbra.io
 +
mail: postmaster@zimbra.io
 +
zimbraPasswordModifiedTime: 20150622194134Z
 +
 +
mail: galsync.h3ysynioki@zimbra.io
 +
 +
mail: ham.elwn5rkk@zimbra.io
 +
zimbraPasswordModifiedTime: 20150622194207Z
 +
 +
mail: spam.yre5n_qvpy@zimbra.io
 +
zimbraPasswordModifiedTime: 20150622194157Z
 +
 +
mail: virus-quarantine.qqigazmyak@zimbra.io
 +
zimbraPasswordModifiedTime: 20150622194220Z</pre>
  
 
==Additional Content==
 
==Additional Content==

Revision as of 11:04, 3 September 2015

List of accounts with their last password change date

   KB 21825        Last updated on 2015-09-3  




0.00
(0 votes)


Purpose

CLI method for extracting a list of all accounts with their last password change date.

Resolution

You can use the 'zmprov sa' for this:

  • First get a list of all the users of the domain along with all of their attributes:
zmprov sa -v "mail=*@example.com"
  • Then filter out the 'zimbraPasswordModifiedTime', like so:
zmprov sa -v "mail=*@example.com" | egrep '^mail:|zimbraPasswordModifiedTime:|^$'

The password modified time is in the format: year, month, date, hours, minutes and seconds: yyyyMMddHHmmssZ

Example of the output:

mail: admin@zimbra.io
mail: root@zimbra.io
mail: postmaster@zimbra.io
zimbraPasswordModifiedTime: 20150622194134Z

mail: galsync.h3ysynioki@zimbra.io

mail: ham.elwn5rkk@zimbra.io
zimbraPasswordModifiedTime: 20150622194207Z

mail: spam.yre5n_qvpy@zimbra.io
zimbraPasswordModifiedTime: 20150622194157Z

mail: virus-quarantine.qqigazmyak@zimbra.io
zimbraPasswordModifiedTime: 20150622194220Z

Additional Content

  • No related content.


Verified Against: Zimbra Collaboration 8.6, 8.5, 8.0 Date Created: 04/16/2015
Article ID: https://wiki.zimbra.com/index.php?title=List_of_accounts_with_their_last_password_change_date Date Modified: 2015-09-03



Try Zimbra

Try Zimbra Collaboration with a 60-day free trial.
Get it now »

Want to get involved?

You can contribute in the Community, Wiki, Code, or development of Zimlets.
Find out more. »

Looking for a Video?

Visit our YouTube channel to get the latest webinars, technology news, product overviews, and so much more.
Go to the YouTube channel »


Wiki/KB reviewed by SME1 SME2 Jenny Jarrard Last edit by Jorge de la Cruz
Jump to: navigation, search