How Do I Enable Less Secure Apps On Gmail

When i develop Python application, sometimes i need to access my gmail account from the Python source code. But this is not allowed by google by default, you need to configure some settings to make it happen. This article will tell you how to make your gmail account accessed by less secure apps such as from Python source code.

1. Turn On Allow Less Secure Apps Access Google Account Steps.

  1. Goto https://accounts.google.com/ web page to login to google account.
  2. Click Security menu item in left, then scroll down in right and click Turn on access link under Less secure app access section in right.
    google account security turn on : off less secure apps
  3. Now turn on Allow less secure apps:ON toggle button in the new page.
    turn on allow less secure apps
  4. Now click the back arrow in the title, you can find the Allow less secure apps has been turned on. You can access your gmail account in your Python code now.
  5. But as google said this action is not recommended, because there will be risks for you gmail account. So you had better turn it off after your testing to make your google account more safety.
READ :   Python Boolean Type Example

5 Comments


  1. I really thank you .My problem solved

    Reply

  2. Thank you so much…this worked perfectly. Wish I had found your answer on Friday…it would have saved me a lot of hassle and hours spent tying to resolve it.

    Reply

    1. Hi Susan,

      I have tried doing the same thing that he explained above but I am not able to find less secure apps option over there. kindly help me in solving this.

      Reply

      1. you might need to turn off 2 step verification temporarily.

        Reply

  3. Thanks for your simple guide. This can save you a lot of manual verification when you are trying to automate your Google account.

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.