A PowerShell module to interact with the Apple Business Manager REST API.
Install-Module -Name PSABM -AllowPrereleaseTo use the SDK with your Apple Business Manager tenant, you must configure authentication by providing the required environment variables
-
Set Environment Variables
Set the following environment variables to authenticate to your Apple Business Manager tenant:
$env:ABM_CLIENT_ID=[clientID] $env:ABM_KEY_ID=[keyID]
Replace
[clientID], and[keyID]with your specific values. -
Connect to Apple Business Manager
Use the
Connect-ABM -KeyPath [path to your PEM file]command to authenticate with the Apple Business Manager API.Connect-ABM -KeyPath '~/.abm/privkey.pem'
-
Retrieve Devices in Apple Business Manager
Use the
Get-ABMObjectcommand to retrieve objects from the Apple Business Manager API.Get-ABMObject -ObjectType 'orgDevices'