In my module I'm creating new permissions that I want by default also assigned to the Drupal admin user.
I know how to assign new permissions to a role, but I don't know how to get the Drupal administrator role id. In the database the rid for administrator is 3, but can I rely on that being always the case? I'm using Drupal 7.
admin/config/people/accounts
. But only if you install the module. So disabling, uninstalling and installing should grant the the permissions to the admin user as well. (Or if someone else installs the module fresh.)