Dunfey · Hotel WWDC as data, est. 1983
Front desk everything
Years
Topics

2021 App Store, Distribution & MarketingBusiness & Education

WWDC21 · 16 min · App Store, Distribution & Marketing / Business & Education

Improve MDM assignment of Apps and Books

Discover the Apps and Books Management API and explore how you can assign an organization’s owned apps and books to managed users and devices. Learn about the latest API improvements and find out how you can subscribe to and receive notifications around asset counts, assignments, and registered users in your organization. And discover how you can take advantage of asynchronous processing to significantly reduce the number of requests you need to make for large assignments.

Watch at developer.apple.com ↗

Transcript all transcripts

Code shown on screen · 9 snippets

Asset Management Notification json · at 2:43 ↗
{
    "notification": {
        "assignments": [
            {
                "adamId": "408709785",
                "pricingParam": "STDQ",
                "serialNumber": "C02Y402HLCM6"
            },
            ...
        ],
        "eventId": "87cbc650-16cc-4f9e-a833-e622f377a9f7",
        "result": "SUCCESS",
        "type": "ASSOCIATE"
    },
    "notificationId": "ba8bbb23-44c2-44f6-a928-eff6ba5ffac3",
    "notificationType": "ASSET_MANAGEMENT",
    "uId": "2049025000431439"
}
Get Assets Response json · at 4:39 ↗
{
    "assets": [
        {
            "adamId": "408709785",
            "pricingParam": "STDQ",
            "assignedCount": 5000,
            "availableCount": 10000,
            "totalCount": 15000,
            ...
        }
    ],
    "currentPageIndex": 0,
    "size": 1,
    "totalPages": 1,
    ...
}
Asset Count Notification json · at 5:09 ↗
{
    "notification": {
        "adamId": "408709785",
        "countDelta": 50,
        "pricingParam": "STDQ"
    },
    "notificationId": "4a7801be-53f0-42e1-9505-81c0d1dc9da3",
    "notificationType": "ASSET_COUNT",
    "uId": "2049025000431439"
}
Get Users Response json · at 6:51 ↗
{
    "currentPageIndex": 0,
    "size": 1,
    "totalPages": 1,
    "users": [
        {
            "clientUserId": "client-100",
            "email": "[email protected]",
            "inviteCode": "f551b37da07146628e8dcbe0111f0364",
            "status": "Registered"
        }
    ],
    "versionId": "58507d60-9cd1-11eb-b916-1926dea207f9",
    ...
}
User Management Notification json · at 7:49 ↗
{
    "notification": {
        "users": [
            {
                "clientUserId": "client-100",
                "idHash": "leSKk3IaE2vk2KLmv2k3/200D3=",
                "status": "Associated",
                ...
            },
            ...
        ],
        "eventId": "e0def1f8-9158-4343-9c52-8dd32da50b9b",
        "result": "SUCCESS",
        "type": "UPDATE"
    },
    "notificationId": "4c0bbb9b-d5a6-4860-83ef-5cf362783c1e",
    "notificationType": "USER_MANAGEMENT",
    "uId": "2049025000431439"
}
User Associated Notification json · at 8:33 ↗
{
    "notification": {
        "associatedUsers": [
            {
                "clientUserId": "client-100",
                "idHash": "leSKk3IaE2vk2KLmv2k3/200D3=",
                "inviteCode": "f551b37da07146628e8dcbe0111f0364",
                "status": "Associated",
                ...
            }
        ]
    },
    "notificationId": "90b83144-fb93-4837-9c52-0ae147bdc421",
    "notificationType": "USER_ASSOCIATED",
    "uId": "2049025000431439"
}
Associate Assets Request json · at 12:25 ↗
{
    "assets": [
      {
        "adamId": "361309726",
        "pricingParam": "STDQ"
      },
      ...
    ],
    "serialNumbers": [
      "serial-1",
      ...
      "serial-1000"
    ]
}
Associate Assets Response json · at 12:51 ↗
{
    "eventId": "92467a8e-8a50-4df9-9b30-f7ff4a99dea7",
    "tokenExpirationDate": "2021-07-06T14:12:10+0000",
    "uId": "2049025000431439"
}
Asset Management Notification json · at 13:24 ↗
{
    "notification": {
        "assignments": [
            {
                "adamId": "361309726",
                "pricingParam": "STDQ",
                "serialNumber": "serial-1"
            },
            ...
        ],
        "eventId": "92467a8e-8a50-4df9-9b30-f7ff4a99dea7",
        "result": "SUCCESS",
        "type": "ASSOCIATE"
    },
    ...
}

Resources