You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

CPHP to force password change.

Received Response
26
Views
1
Comments
edited Jun 8, 2022 12:02PM in General Technical Discussions 1 comment

Content

I'm trying to reset everyone's password and then make them change their password on follow up login. The reset is working fine, but when I try to set ForcePasswordChange to 1, it isnt taking. I tried setting accountlocked and passwordnever expires in the below code, and that worked fine, but forcepassword change isn't transmitting. Any idea why?

Code Snippet

             try{
                $account = RightNow\Connect\v1_3\Account::fetch($i+1);
                echo $account->ID."<br />";
                $account->NewPassword = '***********';

                if($account->Attributes){
                

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!