---
title: "admGetFiltersForProject"
canonical: "https://support.appfire.com/space/PSJ/15489196/admGetFiltersForProject"
format: markdown
---
> Macro (aura-html)


|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | admGetFiltersForProject(user, projectKey) | **Package** |  |
| **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Retrieves all filters for a given project that the user is allowed to see.

Retrieves all filters for a given project that the user is allowed to see.

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| user | String | Yes | The user that needs to have permissions on the specified project |
| projectKey | String | Yes | Key of the selected project. |

## Return Type

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

Returns a list of filters for a given project that the user is allowed to see.

## Example

```
JFilter [] filters = admGetFiltersForProject("admin", "TEST");
for(JFilter f in filters) {
    runnerLog("returned filter: " + f);
}
```

## See also

> Macro (contentbylabel)