---
url: /process-functions/security-applicationaddtagelementsecurity.md
description: Add element security for a tag in an application.
---

# security.applicationAddTagElementSecurity&#x20;

Add element security for a tag in an application.

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

```js
security.applicationAddTagElementSecurity(applicationId, tag, element, access)
```

## Parameters

| Parameter | Type | Description |
|---|---|---|
| `applicationId` | `string` | The application id. |
| `tag` | `string` | The tag id or name. |
| `element` | `string` | Name of the element. |
| `access` | `string` | Name of the access. |

## Returns

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

## Examples

```js
const added = security.applicationAddTagElementSecurity("MyActivityId", "Admin", "Revenue", "read");
```
