Restrict account profile editing
Overview
AccelByte Gaming Services (AGS) enables you to apply restrictions to the ability for a player to edit their account profile. Preventing players from editing their usernames, for example, can make identity verification and fraud protection easier. Limiting editing access to other areas of player profiles can have other use cases, as well. This article shows you how to set up profile edit restrictions in the AGS Admin Portal or with the AGS CLI.
Profile edit restrictions are not yet available in AGS Public Cloud.
Permissions
This permission section applies to Private Cloud customers only
Make sure your account has the permissions in the table shown below before you attempt to configure profile edit restrictions in the AGS Admin Portal.
| Usage | Permission Tag | Action |
|---|---|---|
| View the profile edit restrictions | ADMIN:NAMESPACE:{namespace}:PROFILESTRATEGY | READ |
| Update the profile edit restrictions | ADMIN:NAMESPACE:{namespace}:PROFILESTRATEGY | UPDATE |
To follow the AGS CLI steps, you have installed the AGS CLI and signed in with an account that has the permissions above. See Install and sign in. The examples use a Bash shell.
Configure profile edit restrictions
- Admin Portal
- AGS CLI
-
In the AGS Admin Portal, go to your publisher namespace.
-
Go to Admin Task > Account & Profile Setup > Profile Edit Restrictions.
-
Click the Edit Configurations button to update the restrictions for your player account profile.
- Here are the account properties that can be restricted:
- Display Name
- Username (when it's enabled)
- Date of Birth
- Country
- Here are the options you can configure for each account property.
- Allowed - Unlimited Changes (default)
- Players can edit their information anytime they want.
- Allowed - Limited Changes
- Players can edit their information at intervals which you can configure manually. For example: every 7 days or every 180 days.
- Not Allowed
- Players can enter their information during account creation only. After that, edits can only be made by administrators.
- Allowed - Unlimited Changes (default)
- Here are the account properties that can be restricted:
-
Check the current restrictions. Replace
<YourPublisherNamespace>with your publisher namespace:ags iam profile-update-strategies list --namespace <YourPublisherNamespace> -
Update the restriction for one account property. Set
--fieldto the property, andtypein the request body to the option:ags iam profile-update-strategies update --namespace <YourPublisherNamespace> --field display_name \
--json '{"type": "limited", "config": {"minimumAllowedInterval": 168}}'Account property --fieldDisplay Name display_nameUsername usernameDate of Birth dobCountry countryOption typeAllowed - Unlimited Changes unlimitedAllowed - Limited Changes limitedNot Allowed initial_onlyminimumAllowedInterval: forlimitedonly, the time players must wait between edits, in hours. The Admin Portal shows this value in days, so multiply the number of days by 24. For example, 7 days is168. The Admin Portal allows 1 to 366 days.- For
unlimitedandinitial_only, send an emptyconfig:{"type": "unlimited", "config": {}}.
-
Repeat step 2 for each account property that you want to restrict.