New user rest APIs

Then this should work:

    $userids = clean_param_array($userids, PARAM_NOTAGS);