# Deactivate expired guest accounts in Slack

> A weekly run checks Slack guest accounts against their end dates and deactivates every guest past expiry.

Source: https://stepwork.com/marketplace/deactivate-expired-guest-accounts-in-slack

Automatically deactivate expired Slack guest accounts every week with Stepwork. Check each guest’s end date and deactivate the ones past expiry.

**Apps:** Slack
**Starts with:** Weekly schedule
**Use case:** Access review & audit
**Best for:** IT Administrator, IT Manager
**Applications used:** Slack
**Business outcome:** Risk reduction

## The contract ended. The guest account didn’t.

Contractors and agencies join Slack as guests. When their work ends, their accounts usually stay, because nobody tracks the end dates.

Over months the workspace fills with guests who can still read the channels they were added to. Checking every guest by hand takes hours, so the access review gets pushed to next quarter.

## Guests past their end date are removed every week

Stepwork checks the workspace’s guest accounts and deactivates the ones whose end date has passed. Guests with time left are left alone, and the run posts who was removed.

- The check runs every week on its own.
- Only guests past their end date are deactivated.
- Slack gets the list of who was removed.

## From weekly check to removed guests

Every week, Stepwork checks the workspace’s guest accounts against their end dates and deactivates the ones that have passed.

1. **Start on schedule** (Stepwork): The run starts every week on its own. Nobody has to remember when a contract ended.
2. **List the guest accounts** (Slack): Stepwork signs in to Slack’s member management page and filters the list to guest accounts.
3. **Check each end date** (Slack): Stepwork compares each guest’s end date with today. Guests with time left are skipped.
4. **Deactivate and report** (Slack): Stepwork deactivates every guest past their end date, then posts the list of who was removed in Slack.

## End dates are checked without a reminder

The path runs every week. Stepwork lists the guest accounts, compares each end date with today, and deactivates only the ones that have passed. Guests with time left are skipped.

## Questions

**Q: How do expired Slack guest accounts get deactivated?**
The flow runs every week on its own. Stepwork lists the guest accounts, compares each end date with today, and deactivates the ones that have passed.

**Q: What happens to guests whose end date is still ahead?**
They are skipped. Only guests past their end date are deactivated.

**Q: Does someone have to start the run?**
No. It starts on the weekly schedule. Nobody has to remember when a contract ended.

---

This is the Markdown version of https://stepwork.com/marketplace/deactivate-expired-guest-accounts-in-slack, built from the same copy as the page. Everything about Stepwork for AI tools: https://stepwork.com/llms.txt. Book a demo: https://calendly.com/shaun-maclellan/1-1-w-shaun-stepwork
