{"id":31759763,"url":"https://github.com/macsinspace/combine_mobileconfig","last_synced_at":"2025-10-09T21:17:18.122Z","repository":{"id":317479239,"uuid":"1067592489","full_name":"MacsInSpace/combine_mobileconfig","owner":"MacsInSpace","description":"A bash script for macOS that combines multiple .mobileconfig files into a single configuration profile.","archived":false,"fork":false,"pushed_at":"2025-10-01T04:59:26.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-01T06:30:44.544Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MacsInSpace.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2025-10-01T04:57:37.000Z","updated_at":"2025-10-01T05:41:25.000Z","dependencies_parsed_at":"2025-10-02T13:04:09.201Z","dependency_job_id":null,"html_url":"https://github.com/MacsInSpace/combine_mobileconfig","commit_stats":null,"previous_names":["macsinspace/combine_mobileconfig.sh"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/MacsInSpace/combine_mobileconfig","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MacsInSpace%2Fcombine_mobileconfig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MacsInSpace%2Fcombine_mobileconfig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MacsInSpace%2Fcombine_mobileconfig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MacsInSpace%2Fcombine_mobileconfig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MacsInSpace","download_url":"https://codeload.github.com/MacsInSpace/combine_mobileconfig/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MacsInSpace%2Fcombine_mobileconfig/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002072,"owners_count":26083285,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"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-10-09T21:17:13.946Z","updated_at":"2025-10-09T21:17:18.109Z","avatar_url":"https://github.com/MacsInSpace.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mobileconfig-combiner\n\nA bash script for macOS that intelligently combines multiple `.mobileconfig` files into a single configuration profile.\n\n## Features\n\n- Merges all TCC (Privacy Preferences) payloads into a single unified payload\n- Combines services from multiple TCC profiles (Accessibility, Full Disk Access, Bluetooth, etc.)\n- Detects and handles duplicate payloads by PayloadIdentifier\n- Prefers more complex payloads when duplicates are found (e.g., chooses restricted system extensions over standard ones)\n- Generates new UUIDs for the combined profile\n- Compatible with bash 3.2+ (works on macOS default bash)\n\n## Requirements\n\n- macOS with bash 3.2 or later\n- `/usr/libexec/PlistBuddy` (included with macOS)\n- `plutil` (included with macOS)\n\n## Usage\n\n```bash\n# Combine all .mobileconfig files in current directory\n./combine_mobileconfig.sh\n\n# Combine files from specific directory\n./combine_mobileconfig.sh /path/to/profiles\n\n# Specify custom output filename\n./combine_mobileconfig.sh /path/to/profiles custom_output.mobileconfig\n```\n\n## Example\n\n```bash\nbash-3.2$ bash ./combine_mobileconfig.sh ./defender_profiles\nFound 9 profile(s) to combine\nProcessing: accessibility.mobileconfig\n  Created combined TCC payload\n  Merged TCC service: Accessibility (1 entries)\nProcessing: fulldisk.mobileconfig\n  Merged TCC service: SystemPolicyAllFiles (3 entries)\nProcessing: sysext.mobileconfig\n  Added payload: com.apple.system-extension-policy\nProcessing: sysext_restricted.mobileconfig\n  Replacing payload (new has 8 keys vs 7 keys)\n\nSuccessfully created: combined_profile.mobileconfig\n\nSummary:\n  Source profiles: 9\n  Total payloads: 6\n  TCC services: 3\n```\n\n## How It Works\n\n1. Scans the specified directory for all `.mobileconfig` files\n2. Converts binary plists to XML format\n3. Extracts payloads from each profile\n4. For TCC payloads: combines all services into a single TCC payload\n5. For other payloads: adds unique payloads, replacing with more complex versions when duplicates are found\n6. Generates a new combined profile with fresh UUIDs\n\n## Notes\n\n- The script automatically skips duplicate PayloadIdentifiers\n- When duplicates are found, it prefers the payload with more keys (more comprehensive configuration)\n- All TCC services are merged into a single Privacy Preferences payload\n- Output is always in XML plist format\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmacsinspace%2Fcombine_mobileconfig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmacsinspace%2Fcombine_mobileconfig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmacsinspace%2Fcombine_mobileconfig/lists"}