---
url: /process-functions/security-applicationuserelements.md
description: >-
  List all elements on a dimension visible to the user on a particular
  application.
---

# security.applicationUserElements

List all elements on a dimension visible to the user on a particular application. Returns a JSON array.

```js
let json = security.applicationUserElements(applicationId, userId, dimensionName, hierarchyName);
```

#### Parameters

* `applicationId` - Identifier for the application.
* `userId` - Identifier for the User.
* `dimensionName` - Name of the dimension.
* `hierarchyName` - Name of the hierarchy on the dimension.

#### Example

```js
const appId = "someAppId";
const users = JSON.parse(security.applicationUsers(appId));
const userId = users[0].id;
const result = JSON.parse(security.applicationUserElements(appId, userId, "Account", "Default"));
console.log(result); // ["All Accounts", "Revenue", ...]
```
