public enum class UserAgeGroup
| Member | Value | Description |
|---|---|---|
| Adult | 3 | User is an adult. |
| Child | 1 | User is a child. |
| Teen | 2 | User is a teen. |
| Unknown | 0 | User age is unknown. |
If you need to know whether a user has a particular privilege, and that privilege is dependent on the user’s age, then you must use a privilege API to retrieve the privilege. Do not use age group as a substitute for checking a privilege. Privileges are evaluated specifically for the user’s age, location, and other factors.
A user’s exact age is Personally Identifiable Information (PII) and is not reported by Xbox One.
For detailed information about the Xbox Live User Privilege system, see “Upsell and Access Control to Features of Xbox Live Using Privileges,” a white paper available from White Papers on the Xbox Game Developer (XGD) site.
Namespace: Windows.Xbox.System
Metadata: windows.winmd