---
title: "admGetAllAccounts"
canonical: "https://support.appfire.com/space/PSJC/722305035/admGetAllAccounts"
format: markdown
---
> Macro (aura-html)


## Description

> Macro (excerpt)
> 
> Gets all the accounts ever on the system.

Gets all the users accounts. Both active and inactive accounts. Care should be exercised because it might return a large number of objects.
NOTE: Requires admin token to be set!

|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | admGetAllAccounts() | **Package** | adm |
| **Alias** |  | **Pkg Usage** | [use "adm";
allAccounts();] |

## Return Type

**[JUser []](https://appfire.atlassian.net/wiki/spaces/PSJC/pages/435028065)**

## Example

```javascript
JUser [] users = admGetAllAccounts();
```

Returns all accounts

## See also

> Macro (contentbylabel)