---
url: /process-functions/security-applicationuseraddtag.md
description: Adds a single tag to a user in an application, keeping their existing tags.
---

# security.applicationUserAddTag&#x20;

Adds a single tag to a user in an application, keeping their existing tags.

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

```js
security.applicationUserAddTag(applicationId, userId, tag)
```

## Parameters

| Parameter | Type | Description |
|---|---|---|
| `applicationId` | `string` | The application id. |
| `userId` | `number` | The user's id. |
| `tag` | `string` | The tag id or name to add. |

## Returns

`true` if the tag was added; `false` if the application was not found.

## Examples

```js
const added = security.applicationUserAddTag("MyActivityId", 1, "Admin");
```
