# How can automatically drop user session

**URL:** <https://forum.mattermost.com/t/how-can-automatically-drop-user-session/25452>\
**Category:** Uncategorized\
**Created:** [November 6, 2025, 10:23pm UTC](https://forum.mattermost.com/t/how-can-automatically-drop-user-session/25452 "2025-11-06T22:23:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![luckym-boop](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/luckym-boop/32/8532_2.png) [@luckym-boop](https://forum.mattermost.com/u/luckym-boop)\
**Post date:** [November 6, 2025, 10:23pm UTC](https://forum.mattermost.com/t/how-can-automatically-drop-user-session/25452/1 "2025-11-06T22:23:14Z")

</div>

I use saml authentication over microsoft365. I configure time of life session on 7 day.After disabling the Microsoft account, the MatterMost session is still alive for some time. How can I automatically disable and drop session of users after disable account in microsoft 365.
