I'm trying to create a timer job to run against my SharePoint Online tenant. I have been following this video on Channel9.

I believe I have everything set up correctly, however when it gets to executing: enter image description here

It errors out with 401 Unauthorized. I am using the correct credentials as I am the only user on the tenant which I own, so it's the same credentials that I use to access O365 admin settings, etc.

Is there something I need to enable on my account to allow it to work?

1 Answer 1


Problem Solved

When I was specifying the site to run against: enter image description here

I had to use https for it to work. Silly mistake really: enter image description here

It connects properly now.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.