script.getTaggedUsers deprecated
Deprecated
Use security.application(application).tags.get(tag).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
stringThe 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"));