I'm trying to modify user using following code.
$queryUsers = new ParseQuery("_User");
$queryUsers->equalTo("objectId", $userId);
$resultsUsers = $queryUsers->find();
$updateUsers = $queryUsers->first();
$updateUsers->set("status", $status);
$updateUsers->save();
But parse SDK returning following error.
An uncaught Exception was encountered
Type: Parse\ParseException
Message: Cannot modify user n7ZERX6Fls.
Filename: /var/www/html/mementuum_admin/application/third_party/parse-php-sdk-master/src/Parse/ParseClient.php
I have modified several other tables but not able to modify user table in parse.
Please Help.
Finally I got the answer.
Just we need to add 'true' in save function.
Code should be following
$updateUsers->save(true);
Instead of
$updateUsers->save();