> For the complete documentation index, see [llms.txt](https://docs.octoxlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.octoxlabs.com/adapters/i/ibm-maas360-with-watson.md).

# IBM MaaS360 with Watson

IBM MaaS360 with Watson is a unified endpoint management platform. OctoXLabs reads the managed devices and all MaaS360 users. A user appears as a user asset only when it has an email address.

## Use cases

* Find MaaS360 devices that have not reported recently.

```
Adapters = ibm-maas360-with-watson AND NOT LastSeen last now-30d/d
```

* List MaaS360 managed devices by operating system.

```
Adapters = ibm-maas360-with-watson AND OS.Type = MacOSX
```

## Before you begin

### Network

| Source              | Destination                                                                                                                                                                              | Port | Protocol |
| ------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---- | -------- |
| OctoXLabs connector | MaaS360 web services host of your instance (`services.fiberlink.com` (M1), `services.m2.maas360.com`, `services.m3.maas360.com`, `services.m4.maas360.com` or `services.m6.maas360.com`) | 443  | HTTPS    |

### Required permissions

| Scope or role                                                | Permission | Needed for |
| ------------------------------------------------------------ | ---------- | ---------- |
| Local MaaS360 administrator with **Device View - View Only** | Read       | Devices    |
| Local MaaS360 administrator with **Users - Read Only**       | Read       | Users      |
| Account setting **Enable Web-Services**                      | Enabled    | API access |

## Create credentials in IBM MaaS360 with Watson

{% stepper %}
{% step %}

### Enable web services

Make sure web services are enabled for the account (**Enable Web-Services**).
{% endstep %}

{% step %}

### Create an administrator

Use a local MaaS360 administrator with the **Device View - View Only** and **Users - Read Only** access rights. Read-only roles are enough.
{% endstep %}

{% step %}

### Get the access key

In the MaaS360 Portal go to **Setup** > **Web Services API** > **Manage Access Keys** (or ask IBM Support). Copy the App ID, App Version, Platform ID and App Access Key.
{% endstep %}

{% step %}

### Find the billing ID

The billing ID is the account number of the MaaS360 account.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter                 | Required | Type    | Default | Description                                                                                                                                                                                                  |
| ------------------------- | -------- | ------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Domain                    | Yes      | Text    | None    | Web services host of your instance, without `https://` or a path. Example: `services.m3.maas360.com`.                                                                                                        |
| Billing Id                | Yes      | Text    | None    | Billing ID (account number). Part of every request.                                                                                                                                                          |
| Username                  | Yes      | Text    | None    | Local MaaS360 administrator.                                                                                                                                                                                 |
| Password                  | Yes      | Text    | None    | Password of the administrator.                                                                                                                                                                               |
| App Id                    | Yes      | Text    | None    | App ID of the access key.                                                                                                                                                                                    |
| App Version               | Yes      | Text    | None    | App Version of the access key.                                                                                                                                                                               |
| Platform Id               | No       | Text    | `3`     | Platform ID. MaaS360 uses 3 for web services calls.                                                                                                                                                          |
| App Access Key            | Yes      | Text    | None    | The access key.                                                                                                                                                                                              |
| Fetch Installed Software  | No       | Boolean | `false` | Read installed software. One extra request per device.                                                                                                                                                       |
| Fetch Network Information | No       | Boolean | `false` | Read IP and MAC addresses of Windows, Mac, iOS, Android and BlackBerry devices. One extra request per device. Without it, devices come without IP addresses.                                                 |
| Fetch Hardware Inventory  | No       | Boolean | `false` | Read hardware details (BIOS serial, memory, OS architecture, signed-in user). One extra request per device.                                                                                                  |
| Use Serial As Hostname    | No       | Boolean | `false` | Identify devices by serial number instead of device name. Applies to laptops and desktops too, so they no longer merge with the same computers from other adapters. Enable it only for mostly mobile fleets. |
| Thread Count              | No       | Integer | `10`    | Devices whose details are read at the same time (1 to 32).                                                                                                                                                   |
| Proxy                     | No       | Text    | None    | Proxy in `host:port` form.                                                                                                                                                                                   |
| Timeout                   | No       | Integer | `30`    | Seconds to wait for API responses.                                                                                                                                                                           |

## Troubleshooting

| Error message                                                                                                                                       | Cause                                                     | Fix                                                       |
| --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- |
| `MaaS360 authentication failed (errorCode: <code>, <description>). Check the credentials and that the domain is the services host of the instance.` | The authentication call returned an error or no token.    | Check the billing ID, credentials, access key and domain. |
| `<n> device detail call(s) failed; those devices are listed without the details. Last error: <reason>`                                              | Detail calls failed. Logged as a warning.                 | Check the log reason.                                     |
| `The daily device-apis quota of the MaaS360 account ran out; the remaining devices are listed without details.`                                     | The account reached its daily limit. Logged as a warning. | Turn off fetch options or run discovery on another day.   |

## Change history

{% hint style="info" %}
Available starting from version 6.9.1.
{% endhint %}
