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

# 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](https://docs.xbox.com/reference/system/xuser/functions/xusergetagegroup.md) function.
The [XUserGetAgeGroup](https://docs.xbox.com/reference/system/xuser/functions/xusergetagegroup.md) function accepts a pointer to an XUserAgeGroup enumeration as an argument.
The [XUserGetAgeGroup](https://docs.xbox.com/reference/system/xuser/functions/xusergetagegroup.md) 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](https://docs.xbox.com/reference/system/xuser/xuser_members.md)

[XUserGetAgeGroup](https://docs.xbox.com/reference/system/xuser/functions/xusergetagegroup.md)


## Related topics

- [XUserGetAgeGroup](https://docs.xbox.com/reference/system/xuser/functions/xusergetagegroup.md)
- [XUser (API contents)](https://docs.xbox.com/reference/system/xuser/xuser_members.md)
- [XTF_USER_AGE_GROUP](https://docs.xbox.com/reference/tools/xtf/xtfuser/enumerations/xtf_user_age_group.md)
- [XTF_USER_DATA_V2](https://docs.xbox.com/reference/tools/xtf/xtfuser/structures/xtf_user_data_v2.md)
- [XUserGetMaxUsers](https://docs.xbox.com/reference/system/xuser/functions/xusergetmaxusers.md)
