title: Convert Xbox-Live GamerTag to XUID using Microsoft REST API - Java
body: <p>I have a Java application which needs to be able to take a user-inputted gamertag for Minecraft-Bedrock Edition and convert it into the XUID of the of the given account so that I can store it off for whitelisting and reference purposes later.</p>
  
  <p>I have been going through the Microsoft REST API docs looking for a method that will let me do this but the closest thing I have been able to find is this:</p>
  
  <p><a href="https://docs.microsoft.com/en-us/gaming/xbox-live/xbox-live-rest/uri/profilev2/uri-usersbatchprofilesettingspost" rel="noreferrer">https://docs.microsoft.com/en-us/gaming/xbox-live/xbox-live-rest/uri/profilev2/uri-usersbatchprofilesettingspost</a></p>
  
  <p>which still requires the XUID as input rather than providing it as the output.</p>
  
  <p>Is there any way I can convert a given String input for a gamertag into the XUID of the associated account or null if no such account exists for a Java application?</p>