2

Are password policies in my salesforce organisation accessible by Apex classes ? I would like to use them for custom VF pages.

2 Answers 2

2

If you mean things like:

  • User passwords expire in
  • Enforce password history
  • Minimum password length
  • ...

presented in the "Password Policies" page of Setup then I think the answer is you cannot. The information is not exposed to SOQL and I know of no API that returns this information.

2
  • Thnaks for queck reply So is there no way to get the password policies by using apex code?
    – kumar
    Commented Mar 24, 2014 at 12:39
  • AFAIK no. The answer here was no too developer.salesforce.com/forums/….
    – Keith C
    Commented Mar 24, 2014 at 12:57
0

Yes, you can use fflib Metadata API wrapper to change Password Policies via apex.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .