---
url: /process-functions/security-applicationtaggedusers.md
description: >-
  Returns the users holding a particular tag in an application as a JSON-encoded
  array.
---

# security.applicationTaggedUsers&#x20;

Returns the users holding a particular tag in an application as a JSON-encoded array.

::: warning Deprecated
Use [`app.tags.get(tag).users()`](/process-functions/security-application-elementtag#users) instead.
:::

```js
security.applicationTaggedUsers(applicationId, tag)
```

## Parameters

| Parameter | Type | Description |
|---|---|---|
| `applicationId` | `string` | The application id. |
| `tag` | `string` | The tag name or id. |

## Returns

A JSON-encoded array of user objects for the members holding the given tag. `"[]"` when the application is not found.

## Examples

```js
const users = JSON.parse(security.applicationTaggedUsers("MyActivityId", "Tag"));
```
