Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Kill a live Microsoft Office 365 session

Posted on 2016-08-20
5
Medium Priority
?
846 Views
Last Modified: 2016-10-13
Logged on to Microsoft Office 365 at Starbucks, but forgot to log off and left.  How do I get that session logged off?
0
Comment
Question by:dztdagll
  • 2
  • 2
5 Comments
 
LVL 44

Assisted Solution

by:Vasil Michev (MVP)
Vasil Michev (MVP) earned 2000 total points
ID: 41763584
Generally speaking, you cant, at least not for all services. For SharePoint Online/ODFB, you can use the following cmdlet:

Revoke-SPOUserSession -User baduser@domain.com -Confirm:$false

Open in new window


For the rest of the services, you either need to disable them temporary or simply change your password.
0
 

Author Comment

by:dztdagll
ID: 41763595
Thanks for getting back to me so quickly.  I'm shocked that Microsoft doesn't have a way of doing this given that people often forget to log off!

If i change the password, does that connection disconnect immediately?  if not, how long until it does?
0
 
LVL 44

Accepted Solution

by:
Vasil Michev (MVP) earned 2000 total points
ID: 41763606
The reality of modern applications is that access is cached in many forms, both by the server and the client. In the case of O365 the access token you get can live for several hours. Changing password can revoke the token, but it depends on many factors. The default timeouts are listed here: https://support.office.com/en-us/article/Session-timeouts-for-Office-365-37a5c116-5b07-4f70-8333-5b86fd2c3c40
0
 

Author Comment

by:dztdagll
ID: 41763611
I don't know whether you work for Microsoft or not, but this is a big problem.  Users log on to their email from all different kinds of locations.  They cannot be depended on to logoff.   i don't think I'll be moving my users to Office 365 until I can log them off from an admin portal or something....

Very helpful information.  Thank you so much!
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Adoption of Microsoft’s Enterprise Mobility and Security solution and Office 365 will re-order the File Sync and Share market Microsoft has stated that its Enterprise Mobility + Security (EMS) is the fastest growing product in the history of the …
If something goes wrong with Exchange, your IT resources are in trouble.All Exchange server migration processes are not designed to be identical and though migrating email from on-premises Exchange mailbox to Cloud’s Office 365 is relatively simple…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
how to add IIS SMTP to handle application/Scanner relays into office 365.

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question