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


|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | admChangeFilterOwner(oldOwnerName, newOwnerName, filterName) | **Package** |  |
| **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Changes the ownership of an existing filter.

Changes the ownership of an existing filter.

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| oldOwnerName | String | Yes | The username of the current/old owner of the filter |
| newOwnerName | String | Yes | An username the new owner of the filter |
| filterId | String | Yes | The id of the filter to transfer |

## Return Type

**Boolean (true/false)**

Returns true if the ownership was successfully changed.

## Example

```
boolean success = admChangeFilterOwner("jdoe", "admin", 10200);
```

## See also

> Macro (contentbylabel)