function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
federico_vela_pfederico_vela_p 

Programmatically Expiring Passwords

Hello all,

When I log in though SOAP, the API returns a LoginResult object, that contains a passwordExpired boolean flag.

Is it possible to set this flag programmatically from the API?

Thanks.

Federico Vela
benjasikbenjasik
You can call reset password for a user, which basically requires them to change their password the next time they login.  You can also call setPassword.  Check out the documentation on those calls
federico_vela_pfederico_vela_p
Thank you for your reply,

I am aware of both methods ... my question is, if i call setPassword, can i make that password expire?

thank you
benjasikbenjasik
Only reset password can make it expire.

You could also look at delegated authentication, where you then have total control over password management.  This could allow you to do single sign on, integrate with ldap, etc, but this is a bit more work to implement.
federico_vela_pfederico_vela_p
Thank you for your reply, Benjasik

How would this be done? Would i simply use one known user to access the appexchange api and handle all authentication internally ?

Is there any documentation on this "delegated authentication"?

thank you