NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

ONTAP Discussions

Get the day remaining in PasswordExpirationDuration for a role

AdaikkappanArumugam
2,659 Views

Hi All,

Is there a way to know how many more days are left so users using the role can be sent notifiation that their passwords are going to expire in these many days.

CLI, SDK or powershell anything will do.

 

 

PS H:\> Get-NcRoleConfig admin


RoleName : admin
Vserver : SVMA
MinUsernameSize : 3
RequireUsernameAlphaNumeric : False
MinPasswordSize : 8
RequirePasswordAlphaNumeric : True
ChangePasswordDurationInDays : 0
LastPasswordsDisallowedCount : 6
NcController : ClusterA

 

PS H:\> $a = Get-NcRoleConfig admin

PS H:\> $a.PasswordExpirationDuration
365

 

 

Regards

Adai

0 REPLIES 0
Public