{"id":16253429,"url":"https://github.com/petarov/apple-mdm-clients","last_synced_at":"2025-04-11T05:33:22.581Z","repository":{"id":249318210,"uuid":"831165694","full_name":"petarov/apple-mdm-clients","owner":"petarov","description":"(WIP) Apple MDM Clients for Java","archived":false,"fork":false,"pushed_at":"2025-03-19T20:55:37.000Z","size":221,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-19T21:40:56.447Z","etag":null,"topics":["apple","dep","device-management","mdm","vpp"],"latest_commit_sha":null,"homepage":"","language":"Java","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/petarov.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}},"created_at":"2024-07-19T20:24:28.000Z","updated_at":"2025-03-19T20:55:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"95b598b8-133c-4261-89cb-ba79d5a96e23","html_url":"https://github.com/petarov/apple-mdm-clients","commit_stats":{"total_commits":6,"total_committers":2,"mean_commits":3.0,"dds":"0.16666666666666663","last_synced_commit":"1417fad2b87a78c47d29d73500534355359f1f38"},"previous_names":["petarov/apple-mdm-clients"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petarov%2Fapple-mdm-clients","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petarov%2Fapple-mdm-clients/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petarov%2Fapple-mdm-clients/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petarov%2Fapple-mdm-clients/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/petarov","download_url":"https://codeload.github.com/petarov/apple-mdm-clients/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248347580,"owners_count":21088685,"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","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":["apple","dep","device-management","mdm","vpp"],"created_at":"2024-10-10T15:17:21.511Z","updated_at":"2025-04-11T05:33:22.522Z","avatar_url":"https://github.com/petarov.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Apple MDM Clients for Java\n\nJava clients for Apple Mobile Device Management (MDM) services.\n\nAmong other technical goals, this library aims to use as few external dependencies as possible.\n\n## Device Assignment Client (Automated Device Enrollment)\n\n\u003e Status: Testing ...\n\nManage your organization's Apple Business Manager (`ABM`) devices. ADE, previously known as \"The Device Enrollment\nProgram `(DEP)`\" allows for creating device enrollment profiles and assigning them to your organization's devices.\n\nIn order to use the Java client it is required that you already have created a valid device assignment token on ABM.\nThe private key with which the token must be decrypted is also required.\n\n### Client Example \n\n```java\nvar builder = DeviceAssignmentClient.newBuilder();\nbuilder.setUserAgent(\"apple-mdm-device-assignment-v1\");\nbuilder.setServerToken(DeviceAssignmentServerToken.create(\n\t\tPath.of(\"\u003cpath-to-token\u003e/token_file_smime.p7m\"), \n\t\tDeviceAssignmentPrivateKey.createFromDER(\n\t\t\t\tPath.of(\"\u003cpath-to-private-key\u003e/private.der\"))\n// Use tunneling (HTTP CONNECT) proxy\nbuilder.setProxyOptions(MdmClientProxyOptions.ofHttp(\"proxy-server\", 3128, \"user\", \"pass\"));\n\nvar client = builder.build();\n\t\t\n// Display account information\nSystem.out.println(client.fetchAccount());\n\n// Create a new profile and assign 2 device serial numbers to it\nvar response = client.createProfile(new Profile.ProfileBuilder()\n    .setProfileName(\"mdm-server-01-sales-profile\")\n    .setUrl(\"https://mdm-server-01.local\")\n    .setDepartment(\"Sales\")\n    .setAwaitDeviceConfigured(true)\n    .setMdmRemovable(true)\n    .setSupportPhoneNumber(\"555-555-555\")\n    .setSupportEmailAddress(\"sales-it@example.org\")\n    .setDevices(Set.of(\"A9C1R3Q8KJA9\", \"B112R4L8KJC7\"))\n    .setSkipSetupItems(EnumSet.of(ProfileSkipItem.ENABLE_LOCKDOWN_MODE, \n        ProfileSkipItem.TAP_TO_SETUP, ProfileSkipItem.ICLOUD_DIAGNOSTICS, \n        ProfileSkipItem.ICLOUD_STORAGE)).build());\nSystem.out.println(response.profileUuid());\n```\n\nSee the complete list of service API calls on Apple's [Device Assignment](https://developer.apple.com/documentation/devicemanagement/device-assignment) web page.\n\n## Legacy App and Book Management Client\n\nManage apps and books for students and employees. This Apple API is still perfectly functional, however it has been\ndeprecated and it's no longer maintained.\n\n\u003e Status: Work in progress ...\n\n# Logging\n\nThe libraries utilize SLF4J, so you can plug debug and trace logs into your own logger. Here is a simple `log4j2.xml` example:\n\n```xml\n\u003clogger name=\"com.github.petarov.mdm\" level=\"debug\" additivity=\"false\"\u003e\n    \u003cAppenderRef ref=\"console\"/\u003e\n\u003c/logger\u003e\n```  \n\n# Build\n\nRequires [Java 21](https://adoptium.net/temurin/releases/) or later\n\n    ./gradlew clean build\n\n# License\n\n[MIT License](LICENSE)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpetarov%2Fapple-mdm-clients","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpetarov%2Fapple-mdm-clients","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpetarov%2Fapple-mdm-clients/lists"}