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


## Description

> Macro (excerpt)
> 
> Gets all the filter for an user.

Gets all the filters for an user. The user provided there is the owner of the filters

|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | admGetAllOwnedFilters(userId) | **Package** | adm |
| **Alias** |  | **Pkg Usage** | [use adm; ownedFilters(userId);] |

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| userId | string | Yes | The user |

## Return Type

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

## Example

```javascript
JFilter [] ownedFilter = admGetAllOwnedFilters(currentUser());
```

Gets all the possible filters from the system belonging to the user

## See also

> Macro (contentbylabel)