Skip to content

security.applicationUserElementAccess deprecated ​

Get the access mode available to the user for a particular element in a dimension.

js
security.applicationUserElementAccess(applicationId, userId, dimensionName, elementName)

Parameters ​

ParameterTypeDescription
applicationIdstringThe application id.
userIdstringThe user id.
dimensionNamestringThe dimension's name or id.
elementNamestringName of the element to get access information from.

Returns ​

string

The user's access to the element, from their access tags:

ValueMeaning
"W"Write access.
"R"Read access.
"N"No access, or the application wasn't found.

Returns "Error: Dimension not found." or "Error: Element not found." when the dimension or element can't be found.

Examples ​

js
const access = security.applicationUserElementAccess("MyActivityId", 123, "Account", "Revenue"); // "R"