I am creating some users programaticaly with role "staff". I don't want them as my authenticated user. I created them for a particular purpose. I don't want any permissions which are assigned to authenticated users for this role.
$userinfo = array( 'name' => $name, 'init' => $mail, 'mail' => $mail, 'pass' => $pass, 'status' => 1, 'roles' => array( 9 => 'staff', ), ); $account = user_save(null, $userinfo);
This is my code. It creates user but assigns authenticated user role also by default . How can i achive my target? I want a) New role staff b) staff is not an authenticated user or no permission of an authenticated user Pls help me. I am using drupal 6