---
url: /process-functions/security-applicationaddtag.md
description: Adds a tag to an application.
---

# security.applicationAddTag

Adds a tag to an application. Returns a boolean value depending on the outcome.

```js
security.applicationAddTag(applicationId, tag, dimensionName, hierarchyId, AllElements)
```

#### Parameters

* `applicationId` - Identifier of the activity.
* `tag` - Tag name.
* `dimensionName`- Name of the dimension.
* `hierarchyId` - Identifier of the hierarchy.
* `AllElements` - If it should be added for all elements in the hierarchy.

#### Example

```js
let arr = security.applicationAddTag("MyActivityId", "Admin", "HierarchyId", false);
```
