Informix Error -26103: You cannot modify existing access for user %s now. You must revoke access first then grant access.
Cause and resolution
You cannot modify existing access for user %s now. You must revoke access first then grant access.
The named user has already been granted access. To alter a user's access, you must first revoke their existing access rights with REVOKE ACCESS and then grant the new rights with GRANT ACCESS.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-26103 fires when GRANT ACCESS is used to alter a user's access that's already been
granted — per the official guidance.
- The named user already has access granted, and the statement tries to modify it directly, per the official guidance — the direct, only cause; access can't be modified in place.
Solutions / Resolution
REVOKE ACCESSfor the user first, thenGRANT ACCESSwith the new rights, per the official guidance.
Examples
Altering access directly
GRANT ACCESS TO alice AS 'newsurrogate';
-- -26103: alice already has access granted
Corrected
REVOKE ACCESS FROM alice;
GRANT ACCESS TO alice AS 'newsurrogate';
Diagnostic Checks
- Check whether the named user already has access granted, and
REVOKE/GRANTinstead of trying to modify it directly.
Related Errors / Related Topics
- -26100 — "You cannot set the GRANT ACCESS or REVOKE ACCESS properties when the
USERMAPPING onconfig parameter is OFF" A related
GRANT ACCESS/REVOKE ACCESSrestriction, on theUSERMAPPINGONCONFIG parameter rather than altering existing access.
A user's existing access can't be modified directly — REVOKE ACCESS then GRANT ACCESS
instead.