Manage age restrictions
Overview
AccelByte Gaming Services (AGS) offers an Age Restriction feature that enables you to restrict player account creation for your games, preventing players who do not meet the age requirements from creating accounts. You can set specific age gates in different countries or regions to comply with their regulations. You can manage age restrictions in the AGS Admin Portal or with the AGS CLI.
The Age Restriction feature is not yet supported in AGS Public Cloud.
Prerequisite
You need access to the AGS Admin Portal and the appropriate permissions to manage age restrictions.
To follow the AGS CLI steps, you have installed the AGS CLI and signed in with an account that has READ and UPDATE on ADMIN:NAMESPACE:{namespace}:AGERESTRICTION. See Install and sign in. The examples use a Bash shell.
Set age restrictions
- Admin Portal
- AGS CLI
-
In the AGS Admin Portal, go to your publisher namespace
-
On the sidebar menu, go to Foundations > Legal & Privacy > Age Restrictions.
-
On the Age Restrictions page, set your own restriction rules for any countries or regions:
-
Global Setting:
- Enable Age Restriction: Enable (Yes) or disable (No) age restrictions.
- Age Restriction: Set the minimum age requirement for account creation for all countries and regions.
- Click the Update All button to apply the above settings to all countries and regions.
noteBy default, the age restriction is set to anyone above 21 years old to comply with the video game content rating system requirements from the National Media Council.
-
Country List:
- Search by Country: Use this field to search for and edit a specific country or region's age restriction settings.
- Age Restriction: Set the minimum age requirement for account creation for a specific country or region.
-
-
Check the current global setting. Replace
<YourPublisherNamespace>with your publisher namespace:ags iam age-restrictions list --namespace <YourPublisherNamespace> -
To enable or disable age restrictions, set
enabletotrueorfalse:ags iam age-restrictions update --namespace <YourPublisherNamespace> --json '{"enable": true}' -
To set the minimum age for all countries and regions, the same as Update All, set
ageRestriction:ags iam age-restrictions update --namespace <YourPublisherNamespace> --json '{"ageRestriction": 21}'warningThis overwrites the age restriction of every country and region, including the ones that you set in step 5. Set the global age first.
-
To set the minimum age for one country or region, find its
countryCode:ags iam age-restrictions list-countries --namespace <YourPublisherNamespace> -
Set the country or region's age restriction. Replace
<CountryCode>with thecountryCodefrom step 4:ags iam age-restrictions update-country --namespace <YourPublisherNamespace> --country-code <CountryCode> \
--json '{"ageRestriction": 18}'