user_admin role can set default roles for other users. Before you perform this operation, make sure that the user has already been assigned these roles.
You can query the roles of a user using SHOW GRANTS.
Syntax
Parameters
role_name: the role name
user_identity: the user identity
Examples
Query the roles of the current user.db_admin and user_admin as the default roles for the user test.
test, including roles that will be assigned to this user as default roles.
test.