As you can see I have it disabled but players can still edit their own display name
As you can see I have it disabled but players can still edit their own display name
Hey, I tried reproducing your issue, but I found out that what you’ve disabled only keeps from players accessing their display name, editing is still available. Maybe you should try to prevent clients from calling UpdateUserTitleDisplayName in order to keep players from editing their display name.
In other words, you may edit API policy to restrict usage via admin API UpdatePolicy. For more information, please refer to: https://docs.microsoft.com/en-us/gaming/playfab/features/config/gamemanager/api-access-policy
I tried to do that but I get an error
{ "Action" : "*", "Effect" : "Deny", "Resource" : "pfrn:api--/Client/UpdateUserTitleDisplayName", "Principal" : "*", "Comment" : "Only title can edit display names" }
The error I get is:
Failed to save new global policy: Invalid action Write in statement.
Hey, I tried reproducing your issue both in C# and Postman but my tests worked fine. Did you miss something? If you still getting the error, provide us your title id and we’ll take a look.
Here is my request
{ "PolicyName": "ApiPolicy", "Statements": [ { "Resource": "pfrn:api--*", "Action": "*", "Effect": "Allow", "Principal": "*", "Comment": "The default allow all policy" }, { "Resource": "pfrn:api--/Client/UpdateUserTitleDisplayName", "Action": "*", "Effect": "Deny", "Principal": "*", "Comment": "Disable client to change display name" } ], "OverwritePolicy": true }
It works fine.
3 People are following this question.