Oracle Error ORA-28022: cannot grant external roles to global user or role

Oracle Error Message

ORA-28022: cannot grant external roles to global user or role

Reason for the Error

The role granted was IDENTIFIED EXTERNALLY. External roles cannot be granted to global users, to global roles or to any other roles.

Solution

Use ALTER ROLE to change the type of the role being granted (from IDENTIFIED EXTERNALLY to other, such as NOT IDENTIFIED) or use ALTER USER to change the type of the user that is the grantee.