---
title: Viewing paired accounts on Android
description: List the MFA accounts associated with a paired Android device using getDeviceInfo() in the pingonemfa module.
component: orchsdks
page_id: orchsdks:davinci:use-cases/pingone-mfa/android/04-view-paired-accounts
canonical_url: https://developer.pingidentity.com/orchsdks/davinci/use-cases/pingone-mfa/android/04-view-paired-accounts.html
llms_txt: https://developer.pingidentity.com/orchsdks/llms.txt
docs_for_agents: https://developer.pingidentity.com/build-with-ai/docs-for-agents.md
keywords: ["DaVinci", "MFA", "PingOne", "Android", "Accounts", "Device info", "SDK"]
---

# Viewing paired accounts on Android

[icon: circle-check, set=far]PingOne [icon: android, set=fab]Android

After pairing, you can list the PingOne MFA accounts associated with the paired device:

![pingone mfa list device info](../../../_images/pingone-mfa-list-device-info.png)Figure 1. Displaying PingOne MFA accounts for an Android device.

This works the same whether the device was paired in a DaVinci flow or with a QR code or pairing key.

To list PingOne MFA accounts for a device, call `getDeviceInfo()`. The function suspends and returns a pair consisting of a list of the accounts paired on the device, and a list of diagnostic errors. The error list is `null` unless the SDK encountered errors while retrieving the account data:

Listing paired accounts

```kotlin
PingOneMFA.getDeviceInfo().onSuccess { (accounts, diagnosticErrors) ->
    accounts.forEach { account ->
        Log.d("MFA", "${account.username} | region: ${account.region}")
    }
    // diagnosticErrors is non-null only when the SDK returned partial error info alongside
    // valid data. The account list is still safe to use; log the errors for debugging.
    diagnosticErrors?.forEach { err ->
        Log.w("MFA", "Diagnostic: code=${err.code} info=${err.userInfo}")
    }
}
```

Each element of `accounts` is a `PingOneMfaAccount` object.

For example, a device paired for a single user in the North America region returns an object similar to the following:

Example account data

```json
{
  "region": "NA",
  "id": "9c7d4a1e-83f2-4b6e-a5d0-2f1c9e8b7a64",
  "deviceId": "3f5a2c8d-1e4b-4f9a-b6c7-8d0e2f4a9b13",
  "environment": "b2e1f9a4-6c3d-4e8f-9a2b-5d7c1e3f6a80",
  "username": "jdoe@example.com",
  "name": "Jane",
  "family": "Doe"
}
```

The properties are:

| Property      | Description                                                                                                                                                                                |
| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `region`      | The PingOne service region the account belongs to, for example `NA` or `EU`.The SDK queries all regions and aggregates the results, so a device can hold accounts in more than one region. |
| `id`          | The PingOne user ID.                                                                                                                                                                       |
| `deviceId`    | The ID PingOne assigned to this pairing.                                                                                                                                                   |
| `environment` | The PingOne environment ID the account belongs to.                                                                                                                                         |
| `username`    | The account's login username as returned by the PingOne server.                                                                                                                            |
| `name`        | The user's given name, or `null` if the server did not provide one.                                                                                                                        |
| `family`      | The user's family name, or `null` if the server did not provide one.                                                                                                                       |
