---
url: /process-functions/security-applicationtaggedelements.md
description: >-
  Returns the elements available to a tag in an application as a JSON-encoded
  array.
---

# security.applicationTaggedElements&#x20;

Returns the elements available to a tag in an application as a JSON-encoded array.

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

```js
security.applicationTaggedElements(applicationId, tag, nLevel)
```

## Parameters

| Parameter | Type | Description |
|---|---|---|
| `applicationId` | `string` | The application id. |
| `tag` | `string` | The tag name or id. |
| `nLevel` | `boolean` | Whether to include parent levels. |

## Returns

A JSON-encoded array of the elements the tag grants access to. `"[]"` when the application is not found.

## Examples

```js
const elements = JSON.parse(security.applicationTaggedElements("MyActivityId", "employee", true));
```
