Auto Admin Mapping in Regular Databases
To enable and disable automatic mapping in a regular database:
ALTER ROLE RDB$ADMIN
SET AUTO ADMIN MAPPING; -- enable it
ALTER ROLE RDB$ADMIN
DROP AUTO ADMIN MAPPING; -- disable it
Either statement must be issued by a user with sufficient rights, that is:
-
The database owner
-
A user with the
ALTER ANY ROLE
privilege
Note
|
The statement
is a simplified form of a
Accordingly, the statement
is equivalent to the statement
For details, see [fblangref50-security-mapping] |
In a regular database, the status of AUTO ADMIN MAPPING
is checked only at connect time.If an Administrator has the RDB$ADMIN
role because auto-mapping was on when they logged in, they will keep that role for the duration of the session, even if they or someone else turns off the mapping in the meantime.
Likewise, switching on AUTO ADMIN MAPPING
will not change the current role to RDB$ADMIN
for Administrators who were already connected.