Skip to content

security.applicationUserElements deprecated ​

Lists all elements on a dimension visible to a user in an application, as a JSON-encoded array.

js
security.applicationUserElements(applicationId, userId, dimensionName, hierarchyName)

Parameters ​

ParameterTypeDescription
applicationIdstringThe application id.
userIdstringThe user id.
dimensionNamestringThe name of the dimension.
hierarchyNamestringThe name of the hierarchy on the dimension.

Returns ​

string

A JSON-encoded array of the elements the user can see on the given dimension and hierarchy. "[]" when the application is not found.

Examples ​

js
const elements = JSON.parse(security.applicationUserElements("MyActivityId", 123, "Account", "Default")); // ["All Accounts", "Revenue", ...]