Post Closed as "unclear what you're asking" by kiamlaluno
3 edited tags
| link
2 edited title
| link

CreatHow How can i create a user without role authenticated user role

1
source | link

CreatHow can i create a user without role authenticated user

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