Creating restricted channels within a team for confidential discussions or projects
Hello @Seerat Fatma,
You’re already on the right track by extracting the last activity date. Given the number of channels and the limited timeline, the focus now should be on structuring the remediation effort so it can be completed efficiently without manual review in Teams.
Along with last activity, you can include a few additional criteria to prioritize correctly:
- Member count (to identify empty channels versus those still in use)
- Presence of an owner (already identified as zero in your case)
- Activity of the parent Team (to understand if the channel is still relevant)
- Guest-only membership (these will not migrate and need intervention)
Based on this, a structured approach would be:
1. Export the list of private channels and their Members using PowerShell
You can prefer to this blog's PowerShell script to export "All Private Channels and their Members": Export Private Channels and Members from All Teams using PowerShell
(Note: This link is shared by community members for your convenience. It points to a third-party site that is not managed or verified by Microsoft. We can’t guarantee the quality, safety, or suitability of any content or software found there. Please review carefully and make sure you understand any potential risks before using it.)
2. Classify the channels into the following groups and Define actions for each group:
You can use the exported CSV file to quickly categorize ownerless channels into:
- Channels with no members and no recent activity > no action required, these can be allowed to be soft deleted
- Channels with members but no recent activity > review if time permits, or allow deletion if they are not business-critical
- Channels with members and recent activity > these should be remediated as a priority by assigning at least one internal owner
3. For remediation, avoid manual updates:
- You can assign one of the existing Team owners as the owner of the private channel. For your reference: How to add owners in teams for bulk teams via PowerShell, is there any PowerShell script or any opt…
- After that, re-run the reporting command to confirm that all active channels now have at least one owner.
If time is limited, the minimum required action is to ensure that all channels with members and recent activity have an internal owner assigned. Channels that are empty or clearly inactive can be left to follow the soft deletion process.
This approach should allow you to complete remediation within the deadline without needing to manually inspect each Team and channel.
If you need any further assistance, please don't hesitate to leave a comment. Thank you and I wish you a great day!
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.