---
title: "View user identity (by subscription)"
method: GET
path: "/apps/{app_id}/subscriptions/{subscription_id}/user/identity"
---

# View user identity (by subscription)

`GET /apps/{app_id}/subscriptions/{subscription_id}/user/identity`

Retrieve all aliases linked to a user using a known `subscription_id`. This is useful when the user’s identity is unknown but you have access to one of their push, email, or SMS subscriptions.

## Path parameters

- `app_id` string, required
- `subscription_id` string, required

## Response `200`

200

- object
  - `identity` object
    - `onesignal_id` string — The OneSignal ID of the user. See [Users](/docs/users).
    - `external_id` string — The External ID of the user. See [Users](/docs/users).
    - `custom_alias_label` string — A custom alias of the user. See [Aliases](/docs/aliases).

## Other responses

- `400` — 400
- `404` — 404
- `429` — Rate limit exceeded. Wait the number of seconds in the `Retry-After` header before retrying.
- `503` — Service temporarily unavailable. Retry after a short backoff. The body may be empty or non-JSON in some failure modes.

---

[API](https://skmtc.dev/onesignal/apis/api-onesignal-com.md) · [All operations](https://skmtc.dev/onesignal/apis/api-onesignal-com/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/onesignal/api-onesignal-com/revisions/0fc223f7e338/schema)
