Share via

How can I create new PlayFab accounts with Postman?

Kim Strasser 2,186 Reputation points
2026-02-13T10:24:05.5633333+00:00

I want to create several test accounts in my PlayFab title with Postman. In addition, the test accounts need to upload a score to my leaderboards.

How can I use Postman to create several new PlayFab accounts? Is it necessary to create one account after another or can I create several new accounts in a loop?

Azure Functions
Azure Functions

An Azure service that provides an event-driven serverless compute platform.

{count} votes

Answer accepted by question author
  1. Pravallika KV 10,720 Reputation points Microsoft External Staff Moderator
    2026-02-13T10:43:40.9733333+00:00

    Hi @Kim Strasser ,

    Thanks for reaching out to Microsoft Q&A.

    Steps to create multiple test accounts in PlayFab using Postman:

    1. Set Up Postman Import the PlayFab REST API collection:

    https: //raw.githubusercontent.com/PlayFab/PostmanCollection/master/playfabV2.json

    1. Creating Accounts:
      • Individual Account Creation: You can create accounts one by one. To do this, you'll use the RegisterPlayFabUser API in Postman:
      • Under the Client namespace, find RegisterPlayFabUser.
      • In the request body, make sure to include the necessary fields like Email, Password, and any other required information.
      • Loop for Multiple Accounts: Postman doesn't natively support loops in requests like some programming environments, but you can create a collection runner or write a small script to automate the Postman requests outside of Postman. However, you would typically call the RegisterPlayFabUser endpoint multiple times with different parameters (for each account) in a sequential manner.
    2. Uploading Scores: After creating the accounts, you'll use the UpdatePlayerStatistics API to upload scores to your leaderboards:
      • Again, select the appropriate request under the Client namespace and provide the relevant statistics for the newly created accounts.

    Use environment variables for storing EntityToken or other user identification to easily switch between accounts.

    Hope this helps!

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Q&A Assist
    2026-02-13T10:24:18.9466667+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    To create new PlayFab accounts using Postman, you can utilize the LoginWithCustomID API. Here’s how you can do it:

    1. Set Up Your Environment: Make sure you have a PlayFab developer account and the Postman app installed.
    2. Create a New Environment: In Postman, create a new environment and name it appropriately (e.g., "Test Environment").
    3. Use the LoginWithCustomID API:
      • Under the PlayFab Collections folder, expand the Client namespace and select LoginWithCustomID.
      • In the request body, set the CreateAccount value to true. This will create a new account if it doesn't exist.
      • You can specify a unique CustomID for each account you want to create.
      • Send the request to create the account.
    4. Looping for Multiple Accounts: Postman does not natively support loops in the way programming languages do. However, you can use the Collection Runner feature to run the same request multiple times with different CustomID values. You can prepare a CSV or JSON file with different IDs and use it in the Collection Runner to create several accounts in one go.
    5. Uploading Scores: After creating the accounts, you can use the UpdatePlayerStatistics API to upload scores to your leaderboards. You will need to authenticate each account using the EntityToken you receive after creating the account.

    By following these steps, you can efficiently create multiple test accounts and upload scores to your leaderboards using Postman.


    References:

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.