---
url: /process-functions/security-applicationusertags.md
description: >-
  Returns the tags held by a user in an application as a JSON-encoded array of
  {id, name} objects.
---

# security.applicationUserTags&#x20;

Returns the tags held by a user in an application as a JSON-encoded array of {id, name} objects.

::: warning Deprecated
Use [`app.tags.userGetTags(user)`](/process-functions/security-application-tags#usergettags) instead.
:::

```js
security.applicationUserTags(applicationId, userId)
```

## Parameters

| Parameter | Type | Description |
|---|---|---|
| `applicationId` | `string` | The application id. |
| `userId` | `number` | The user's id. |

## Returns

A JSON-encoded array of `{ id, name }` objects, one per tag the user holds. `"[]"` when the application is not found.

## Examples

```js
const tags = JSON.parse(security.applicationUserTags("MyActivityId", 1));
```
