{"id":28384734,"url":"https://github.com/stackexchange/so4t_scim_user_deactivation","last_synced_at":"2026-07-08T20:31:02.026Z","repository":{"id":243243496,"uuid":"811881771","full_name":"StackExchange/so4t_scim_user_deactivation","owner":"StackExchange","description":null,"archived":false,"fork":false,"pushed_at":"2025-11-12T18:17:55.000Z","size":33,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-08T19:55:55.860Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/StackExchange.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-06-07T13:50:59.000Z","updated_at":"2026-01-14T19:48:27.000Z","dependencies_parsed_at":"2025-03-04T22:24:12.344Z","dependency_job_id":"c00131fe-8ee4-494e-87ec-478f844d6525","html_url":"https://github.com/StackExchange/so4t_scim_user_deactivation","commit_stats":null,"previous_names":["stackexchange/so4t_scim_user_deactivation"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/StackExchange/so4t_scim_user_deactivation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StackExchange%2Fso4t_scim_user_deactivation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StackExchange%2Fso4t_scim_user_deactivation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StackExchange%2Fso4t_scim_user_deactivation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StackExchange%2Fso4t_scim_user_deactivation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StackExchange","download_url":"https://codeload.github.com/StackExchange/so4t_scim_user_deactivation/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StackExchange%2Fso4t_scim_user_deactivation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35278166,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-08T02:00:06.796Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-05-30T09:30:34.279Z","updated_at":"2026-07-08T20:31:02.007Z","avatar_url":"https://github.com/StackExchange.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Stack Internal SCIM-based User Deactivation\nA SCIM API script for Stack Internal that can automate the Deactivation of a list of specific existing users.\n\n\n## Requirements\n* A Stack Internal instance with SCIM enabled (Basic, Business, or Enterprise)\n* Python 3.8 or higher ([download](https://www.python.org/downloads/))\n* Operating system: Linux, MacOS, or Windows\n\n## Setup\n\n[Download](https://github.com/StackExchange/so4t_scim_user_deactivation/archive/refs/heads/main.zip) and unpack the contents of this repository\n\n**Installing Dependencies**\n\n* Open a terminal window (or, for Windows, a command prompt)\n* Navigate to the directory where you unpacked the files\n* Install the dependencies: `pip3 install -r requirements.txt`\n\n**Enabling and Authenticating SCIM**\n\nTo use the SCIM API, you'll first need to enable SCIM in the admin settings. Second, you'll need to generate a SCIM token to authenticate the API calls.\n- [SCIM Documentation for Basic and Business](https://stackoverflowteams.help/en/articles/4538506-automated-user-provisioning-scim-overview)\n- [SCIM Documentation for Enterprise](https://support.stackenterprise.co/support/solutions/articles/22000236123-system-for-cross-domain-identity-management-scim-2-0-support)\n\n\u003e NOTE: The SCIM token differs from the API token used for Stack Internal API. \n\n## Usage\n\nCreate a file named `users.csv` in the same directory as the script. \nYou can find a CSV template [here](https://github.com/StackExchange/so4t_scim_user_deactivation/blob/main/Templates/users.csv).\n- The CSV should have a single column with no header row\n- Each row can be an email address or external ID\n\nThe script will read the CSV and Activate each user found in the list. If the user is not found, the script will skip to the next user and print a message to the console.\n\nIn a terminal window, navigate to the directory where you unpacked the script. Run the script with the `--csv` flag, replacing the URL, token, and path to CSV file with your own:\n* For Basic and Business: `python3 so4t_scim_user_deactivation.py --url \"https://stackoverflowteams.com/c/TEAM-NAME\" --token \"YOUR_SCIM_TOKEN\" --csv users.csv`\n* For Enterprise: `python3 so4t_scim_user_deactivation.py --url \"https://SUBDOMAIN.stackenterprise.co\" --token \"YOUR_SCIM_TOKEN\" --csv users.csv`\n\n\u003e If API requests to the Stack Internal server must be made through a proxy, you can use the `--proxy` flag to specify the proxy URL. Example: `python3 so4t_scim_user_deactivation.py --url \"https://SUBDOMAIN.stackenterprise.co\" --token \"YOUR_SCIM_TOKEN\" --proxy \"PROXY.EXAMPLE.COM:PORTNUMBER\"`\n\n## Support, security, and legal\n\nIf you encounter problems using the script, please leave feedback in the Github Issues. You can also clone and change the script to suit your needs. It is provided as-is, with no warranty or guarantee of any kind.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstackexchange%2Fso4t_scim_user_deactivation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstackexchange%2Fso4t_scim_user_deactivation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstackexchange%2Fso4t_scim_user_deactivation/lists"}