> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XUserAgeGroup

> XUserAgeGroup

# XUserAgeGroup

Specifies the age group of a user.

## Syntax

```cpp theme={null}
enum class XUserAgeGroup  : uint32_t  
{  
    Unknown = 0,  
    Child = 1,  
    Teen = 2,  
    Adult = 3,  
}  
```

## Constants

| Constant | Description          |
| -------- | -------------------- |
| Unknown  | User age is unknown. |
| Child    | User is a child.     |
| Teen     | User is a teen.      |
| Adult    | User is an adult.    |

## Remarks

To get the age group for a user, call the [XUserGetAgeGroup](/reference/system/xuser/functions/xusergetagegroup) function.
The [XUserGetAgeGroup](/reference/system/xuser/functions/xusergetagegroup) function accepts a pointer to an XUserAgeGroup enumeration as an argument.
The [XUserGetAgeGroup](/reference/system/xuser/functions/xusergetagegroup) function returns a pointer to an XUserAgeGroup enumeration that represents the age group of the user.

## Requirements

**Header:** XUser.h

**Supported platforms:** Windows, XBOX One family consoles and XBOX Series consoles

## See also

[XUser](/reference/system/xuser/xuser_members)

[XUserGetAgeGroup](/reference/system/xuser/functions/xusergetagegroup)


## Related topics

- [XUserGetAgeGroup](/reference/system/xuser/functions/xusergetagegroup.md)
- [XR-013 Linking Microsoft Accounts with Publisher Accounts](/publishing/certification/xr/xr-013.md)
- [XUser](/reference/system/xuser/xuser_members.md)
- [XTF_USER_AGE_GROUP](/reference/tools/xtf/xtfuser/enumerations/xtf_user_age_group.md)
- [XTF_USER_DATA_V2](/reference/tools/xtf/xtfuser/structures/xtf_user_data_v2.md)
