Need Help with MS O365 Authentication

Based on my experience, if two factor authentication is enabled then secret ID will not mostly work. I would suggest you go with the below image properties. Application ID, Tenant ID, Authentication type: Interactive token, Servies: {your preferred services}, instead of secret id provide username and password in the properties.

Once all the properties are completed, run the bot you will be asked to login during the run time. this login is required for only one time per machine and ID.