script.getAccessTags deprecated
Deprecated
Use userSecurity.users.get(userId).tags(application) instead.
Returns a user's access tags in the application the process was run from. Returns "[]" when the process wasn't run from an application.
js
script.getAccessTags(userId)Parameters
| Parameter | Type | Description |
|---|---|---|
userId | string | The user's id. |
Returns
stringThe tag names, as a JSON array string. Use JSON.parse() to read it.
Examples
js
const access = JSON.parse(script.getAccessTags("123"));