security.applicationUserAddTag deprecated
Adds a single tag to a user in an application, keeping their existing tags.
Deprecated
Use app.tags.get(tag).addUser(user) instead.
js
security.applicationUserAddTag(applicationId, userId, tag)Parameters
| Parameter | Type | Description |
|---|---|---|
applicationId | string | The application id. |
userId | number | The user's id. |
tag | string | The tag id or name to add. |
Returns
booleantrue if the tag was added; false if the application was not found.
Examples
js
const added = security.applicationUserAddTag("MyActivityId", 1, "Admin");