Solved

Kill a live Microsoft Office 365 session

Posted on 2016-08-20
5
29 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 38

Assisted Solution

by:Vasil Michev (MVP)
Vasil Michev (MVP) earned 500 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 38

Accepted Solution

by:
Vasil Michev (MVP) earned 500 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Companies keep a much closer eye on costs today, so changing to new Technology – Microsoft Office 365 is the smartest move to take.
Check out this infographic on what you need to make a good email signature that will work perfectly for your organization.
Office 365 is currently available in five editions. Three of them are for business use: Office 365 Business Essentials, Office 365 Business, and Office 365 Business Premium. Two of them are for home/personal use: Office 365 Home and Office 365 Perso…
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

747 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now