# Teams::get_user_ids_for_team_membership_cleanup()

Collect user IDs that still reference this team in their membership index (while the team post exists).

```php
get_user_ids_for_team_membership_cleanup( int $team_id ): array
```

## Parameters

- `$team_id` (int) Team post ID.

## Return

`array<int, int>`
