I'm trying to connect to SharePoint online to read list data. Problem - I need to use a service account since these accounts have passwords. The credentials class needs a password and our user accounts don't have them. We use chip cards, pins and tokens, etc. I noticed through trial and error that it will not accept a username for a service account unless it is formatted like an email address, but then, SharePoint doesn't recognize it. Is that actually the way the password needs to be formatted to work? Any suggestions?
Thank you