C# access to Office 365/Outlook RRS feed

  • Question

  • trying to figure out what the best way to access outlook using C#. I've used EWS in the past but is that depreciated now?

    I need to programatically block sign access to specific accounts. 

    I figure i can either run powershell commands through my C# application but is there another way to access and modify user accounts that isn't using powershell?

    Can someone point me in the right direction if there is?

    Thursday, November 8, 2018 8:25 PM

All replies

  • Don't know how to block accounts, but you can have a look at Microsoft Graph.

    Justin Liu Office Servers and Services MVP, MCSE
    Senior Software Engineer
    Please Vote and Mark as Answer if it helps you.

    Friday, November 9, 2018 6:37 AM
  • there is an option in the admin menu to block sign-in. that is what we are trying to do.

    Looks like it may just be easier to use powershell scripts.

    Friday, November 9, 2018 1:57 PM
  • I think I figured out the graph thing using the API. 

    What I dont see is a way to run the invalidate token command using the API. It exists with REST. 

    Is  that possible to do? I can just set accountEnabled = false to disable the account but actually just invalidating all the user's tokens would be better since they would then be blocked from logging in by Okta.

    Friday, November 9, 2018 3:33 PM