How to create an admin through API?

bigheadfish - August 31, 2008 - 15:53

It seems that by default, Drupal 5.x installation does not have "administrator" role, just anonymous user and authenticated user.

Correct me if I am wrong: the UID for the 1st user is 1 and Drupal consider user with uid=1 as site admin.

Now I need to add site admins. Do I have to use API to create an admin role, give all accesses to it, and then create a user as admin?

Thanks,

You can use Drupal to add a

nevets - August 31, 2008 - 16:23

You can use Drupal to add a new role called what ever you like then set permissions for that role as you desire, then assign the role to the users that you want to have those capabilities.

Thanks

bigheadfish - August 31, 2008 - 16:31

I know I can go to Administer page to do that manually. But I prefer to use API to do this, as end users of the module may not want to do it themselves (call them smart customers, or lazy customers. Anyway, customers are right)

Module

yelvington - August 31, 2008 - 16:43
 
 

Drupal is a registered trademark of Dries Buytaert.