---
url: /process-functions/security-applicationuserswithtag.md
description: >-
  Returns an object of users and their information that have a specified tag
  within a given application.
---

# security.applicationUsersWithTag&#x20;

Returns an object of users and their information that have a specified tag within a given application.

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

```js
security.applicationUsersWithTag(applicationIdOrName, tagName)
```

## Parameters

| Parameter | Type | Description |
|---|---|---|
| `applicationIdOrName` | `string` | The application id. |
| `tagName` | `string` | The access tag's name to check. |

## Returns

An object whose keys are user ids and whose values are the corresponding user objects.

## Examples

```js
const approvers = security.applicationUsersWithTag("Finance App", "Approvers");
```
