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


## Description

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

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

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

## Return Type

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

## Example

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

Returns all accounts, active

## See also

> Macro (contentbylabel)