security.applicationUserElements deprecated
Lists all elements on a dimension visible to a user in an application, as a JSON-encoded array.
Deprecated
Use app.tags.userGetElements(user, dimension, hierarchy) instead.
js
security.applicationUserElements(applicationId, userId, dimensionName, hierarchyName)Parameters
| Parameter | Type | Description |
|---|---|---|
applicationId | string | The application id. |
userId | string | The user id. |
dimensionName | string | The name of the dimension. |
hierarchyName | string | The name of the hierarchy on the dimension. |
Returns
stringA 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", ...]