Skip to content

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 ​

ParameterTypeDescription
applicationIdstringThe application id.
userIdnumberThe user's id.
tagstringThe tag id or name to add.

Returns ​

boolean

true if the tag was added; false if the application was not found.

Examples ​

js
const added = security.applicationUserAddTag("MyActivityId", 1, "Admin");