This repository contains a collection of Python scripts and JavaScript files designed to automate various processes and tasks in Slack, including managing channels, users, user groups, and Slack workflows.
Here’s a list of all the scripts in this repository along with their descriptions:
- slack_add_remove_channel.py: Automates the process of adding or removing users from Slack channels.
- slack_add_remove_user_workspace.py: Manages adding or removing users from a Slack workspace.
- slack_add_to_channel.py: Adds a specified user to a Slack channel.
- slack_add_user_workspace.py: Adds users to a Slack workspace.
- slack_allowlists.py: Manages allowlists for approved users and apps in Slack.
- slack_chan_exp_integration.py: Integrates Slack channel expiration policies and settings with other systems.
- slack_chanID_name.py: Exports Slack channel IDs and names for easy reference.
- slack_chanMem_export_userids.py: Exports user IDs from Slack channel members.
- slack_chanMem_export.py: Exports Slack channel members.
- slack_channel_add.py: Adds channels programmatically to a Slack workspace.
- slack_channel_archive-unarchive.py: Archives and unarchives Slack channels.
- slack_channel_delete.py: Deletes a Slack channel.
- slack_channel_export.py: Exports the data from a Slack channel.
- slack_channel_public_private.py: Changes a Slack channel's visibility from public to private or vice versa.
- slack_channel_retention.py: Configures retention policies for Slack channels.
- slack_channel_workflow_ping.py: Pings specific Slack workflows related to channel activity.
- slack_channel_workspace.py: Manages Slack channels within a workspace.
- slack_disable_enable_usergroups.py: Disables or enables user groups within Slack.
- slack_emoji_list.py: Exports a list of emojis used in a Slack workspace.
- slack_empty_channels_alert.py: Alerts on empty Slack channels.
- slack_export_workspace_all_users.py: Exports all users in a Slack workspace.
- slack_external_teams_disconnection.py: Manages disconnection of external teams from Slack channels.
- slack_guest_expiration.py: Manages guest user expiration dates within Slack.
- slack_guests_wo_exp.js: Identifies guests in Slack without an expiration date and notifies relevant users.
- slack_inactive_channels_alert.py: Alerts when a Slack channel has been inactive for a specified period.
- slack_multichannelGuest+activate.py: Activates multichannel guest users in Slack.
- slack_remove_from_channel.py: Removes a user from a specific Slack channel.
- slack_remove_user_workspace.py: Removes a user from a Slack workspace.
- slack_update_user_profile.py: Updates a user's profile information in Slack.
- slack_user_activate_deactivate.py: Automates user activation and deactivation processes in Slack.
- slack_user_byID.py: Retrieves Slack user information by their user ID.
- slack_user_chan_export_updated.py: Exports updated user data from Slack channels.
- slack_user_chan_export.py: Exports users from Slack channels.
- slack_user_mcg_udpate.py: Updates multi-channel guest users in Slack.
- slack_usergroups_list.py: Lists all user groups in a Slack workspace.
- slack_workflows_search.py: Searches and retrieves data related to Slack workflows.
- slackSDK_restrict_approve.py: Restricts or approves Slack apps using the Slack SDK.
- slackSDK_revoke.py: Revokes Slack apps and integrations using the Slack SDK.
- Python 3.x: Ensure that Python 3 is installed on your system.
- Slack SDK: Install the Slack SDK for Python to interact with the Slack API.
- API Keys: You will need a Slack API token to authenticate API requests. Ensure the token has the necessary permissions for the operations you plan to run.
- Clone this repository:
git clone https://github.com/your-repo-name/slack-automation-scripts.git
- Install the required dependencies:
pip install -r requirements.txt
- Set up your Slack API tokens and other necessary credentials in environment variables:
export SLACK_API_TOKEN="your-token-here"
Run the desired script from the command line or integrate it with your automation workflows.
Example:
python3 slack_add_to_channel.py --channel "channel-id" --user "user-id"
Feel free to submit issues or pull requests to improve the functionality of the scripts or add new features. Contributions are welcome!
This project is licensed under the MIT License.