Skip to content

security.applicationUserHasTag deprecated ​

Checks if a particular user in an application has a specific tag.

Deprecated

Use app.tags.get(tag).hasUser(user) instead.

js
security.applicationUserHasTag(applicationId, tagName, userId)

Parameters ​

ParameterTypeDescription
applicationIdstringThe application id.
tagNamestringThe access tag's name to check.
userIdnumberThe user's id.

Returns ​

boolean

true if the user holds the tag; false otherwise (including when the application is not found).

Examples ​

js
const isApprover = security.applicationUserHasTag("Finance App", "Approvers", 123);