When I log in to WordPress with my newly created User Role, I get the error “You do not have sufficient permissions to access this admin page.”, because WordPress is sending the user to “/wp-admin/profile.php” instead of the default dashboard page. (I have restricted access to that page for that user role)
After logging in, when I go to /wp-admin url directly (after facing the above error) with any users of that role, everything functions properly. How do I stop WordPress from sending the user to Profile page after log-in? I want users to go to Dashboard Home (Dashboard Tab)!
UPDATE: Note that on my wordpress installation only 3 users are used – Administrator, CustomUser1, and CustomUser2 (not the actual names of the second two users). This problem only occurs when I use the custom users, because they have limited permissions.