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


|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | admActivateUser(username) | **Package** | adm |
| **Alias** |  | **Pkg Usage** | activateUser(username) |

## Description

> Macro (excerpt)
> 
> Activates a user, setting its active flag to 'true', if update is allowed.

Activates a user, setting its active flag to 'true', if update is allowed.

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| username | String | Yes | Username or key. |

## Return Type

**Boolean (true/false)**

Returns 'true' if operation succeeded and 'false' otherwise.

## Example

```
admActivateUser("testuser");
```

## See also

> Macro (contentbylabel)