# Force a User to Log Off if user is Suspended/Deleted

**URL:** <https://forum.adalo.com/t/force-a-user-to-log-off-if-user-is-suspended-deleted/34439>\
**Category:** Get Help\
**Created:** [December 12, 2022, 1:54am UTC](https://forum.adalo.com/t/force-a-user-to-log-off-if-user-is-suspended-deleted/34439 "2022-12-12T01:54:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Drivenworks](https://avatars.discourse-cdn.com/v4/letter/d/90db22/32.png) [@Drivenworks](https://forum.adalo.com/u/Drivenworks)\
**Post date:** [December 12, 2022, 1:54am UTC](https://forum.adalo.com/t/force-a-user-to-log-off-if-user-is-suspended-deleted/34439/1 "2022-12-12T01:54:44Z")

</div>

I am trying to figure out a way to boot/log off a user if the moderator suspends or delete the user. Currently if I delete the user, the user can remain logged in and continue to use the app until they choose to log off or I update the app.

Thoughts?

---

<div class="post-metadata">

**Author:** ![Flawless](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/flawless/32/20131_2.png) [@Flawless](https://forum.adalo.com/u/Flawless)\
**Post date:** [December 12, 2022, 2:37am UTC](https://forum.adalo.com/t/force-a-user-to-log-off-if-user-is-suspended-deleted/34439/2 "2022-12-12T02:37:51Z")

</div>

Add a true/false parameter to the user collection and call it “user suspended”.

Drop a 1 second countdown timer onto the main screens of your app (like the home screen and maybe a few other screens that are important) and set the visibility of this timer to sometimes visible if logged in user \> user suspended is equal to true.

Add the logout action and a link to a different screen.

You can hide the countdown timer by setting the colors to the same as your background color for the screen and/or by adding a rectangle over it.

---

<div class="post-metadata">

**Author:** ![Drivenworks](https://avatars.discourse-cdn.com/v4/letter/d/90db22/32.png) [@Drivenworks](https://forum.adalo.com/u/Drivenworks)\
**Post date:** [December 12, 2022, 2:52am UTC](https://forum.adalo.com/t/force-a-user-to-log-off-if-user-is-suspended-deleted/34439/3 "2022-12-12T02:52:09Z")

</div>

Thank you this worked.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/system/32/40401_2.png) [@system](https://forum.adalo.com/u/system)\
**Post date:** [December 22, 2022, 2:52am UTC](https://forum.adalo.com/t/force-a-user-to-log-off-if-user-is-suspended-deleted/34439/4 "2022-12-22T02:52:31Z")

</div>

Closed on December 22, 2022, 2:52am UTC

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
