Hi Neha,
If the existing solution is not worked try creating custom login microflow in that check the userole and block the admin.
Hi Neha Jagtap,
In microflow retrieve account with xpath
[ ( System.UserRoles = '[%UserRole_Administrator%]' )]
and check if admin user role, if it is pass to happy path else block the user