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

> Macro (table-plus)
> 
> |  |  |  |  |
> | --- | --- | --- | --- |
> | **Syntax** | admActivateUser(userNameOrKey) | **Package** |  |
> | **Alias** |  | **Pkg Usage** |  |

## Description

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

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

## Return Type

**Boolean (true/false)**

## Example

```javascript
return admActivateUser("testUser");
```

Returns true if the update was allowed.

## See also

> Macro (contentbylabel)