Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • API and SDK Questions /
avatar image
Question by Joel Malone · Nov 04, 2019 at 05:57 AM · apisdocumentation

Configure "Allow non-unique player display names" (etc) via API

We are trying to script as much Title configuration as possible for our PlayFab titles.

It seems like the API is excellent for configuring subsystems (great job!), but not so much the title itself?

I've scanned through the API documentation but can't find a way to configure these two Title settings:

  • General -> "Allow non-unique player display names"
  • API Features -> "Allow client to post player statistics"

Is there a way to modify these (and other title-related) settings from API?

Thanks

Joel

Comment

People who like this

0 Show 0
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by Citrus Yan · Nov 04, 2019 at 08:04 AM

Hi @Joel Malone,

For configuring the "Allow non-unique player display names" setting, there is no API can do that, you’ll need to configure it via the Game Manager. If you think it’s really important for you, you can make a feature request about it.

About the “Allow client to post player statistics” setting”, a possible way to configure it through API is to set up a policy that will deny the Client/UpdatePlayerStatistics API request from the client. Please note this operation is not fully equivalent to the one performed in the Game Manager, but it will generate a similar outcome. Here is the example for you to set it up:

Call UpdatePolicy with the following parameters in the request body:

{ 
"PolicyName": "ApiPolicy", 
"Statements": [ 
{ 
"Resource": "pfrn:api--/Client/UpdatePlayerStatistics", 
"Action": "*", 
"Effect": "Deny", 
"Principal": "*", 
"Comment": "Client cannot update statistics" 
}  
], 
"OverwritePolicy": false

}

This will disable the Client/UpdatePlayerStatistics API access from the client, making them unable to post statistics. You can use this method to configure other settings like “Allow client to subtract virtual currency” (simply disable the Client/SubtractUserVirtualCurrency API access from the client), you get the idea. Here is the tutorial on API access policy you may find helpful.

Comment
Joel Malone

People who like this

1 Show 2 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Joel Malone · Nov 06, 2019 at 03:37 AM 0
Share

Thanks for the information! Have create a feature request for managing Title settings via Admin API.

avatar image Citrus Yan Joel Malone · Nov 06, 2019 at 06:51 AM 0
Share

Glad it helped:)

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    4 People are following this question.

    avatar image avatar image avatar image avatar image

    Related Questions

    Group policy for invitations and applications 1 Answer

    Party in generic C++ : where is the most up-to-date sample code? 2 Answers

    Complete Cloud Code developer document 2 Answers

    Azure Function 'FunctionExecutionContext' 1 Answer

    Getting a custom server information 1 Answer

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

    • Documentation
    • Quickstarts
    • API Reference
    • SDKs
    • Usage Limits

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges