---
url: /process-functions/script-gettaggedusers.md
description: Returns the users that have an access tag.
---

# script.getTaggedUsers&#x20;

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

Returns the users that have an access tag in the application the process was run from. Returns `"[]"` when the process wasn't run from an application.

```js
script.getTaggedUsers(tag)
```

## Parameters

| Parameter | Type | Description |
|---|---|---|
| `tag` | `string` | The tag's name. |

## Returns

The users, as a JSON array string. Each user has an id, name and email. Use `JSON.parse()` to read it.

## Examples

```js
const users = JSON.parse(script.getTaggedUsers("Finance"));
```
