question

neha-malhotra262003 avatar image
neha-malhotra262003 asked

How to use Authentication - Login With Xbox API to fetch user gamer tag associated with email address

Hi Team,

We have a requirement to have one form where user will fill the gamertag along with email etc. We want to prepopulate the gamertag associated with user email address using Authentication - Login With Xbox API in prefab from Java backend. Kindly let us know if this is feasible.

Authentication
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Neils Shi avatar image
Neils Shi answered

Please note that Authentication - Login With Xbox - REST API (PlayFab Server) | Microsoft Learn doesn’t have the parameter to set data like gamertag and email address. But after players successfully log in, you can set any data you want. For example, you can call API AddPlayerTag to add a tag to player. And players can add or update a contact email to the their account via API AddOrUpdateContactEmail. For more info, you can refer to https://learn.microsoft.com/en-us/gaming/playfab/features/engagement/emails/using-a-rule-to-verify-a-contact-email-address#step-3---add-a-contact-email-to-a-player .

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.