Right now GerUserAccount seem the only thing can get PlayfabID but it require PlayfabID and no Username option, or maybe I miss something?
Right now GerUserAccount seem the only thing can get PlayfabID but it require PlayfabID and no Username option, or maybe I miss something?
I don't think your missing anything.
It appears you can not call Server.GetUserAccountInfo with a Username like you can Admin.GetUserAccountInfo which is a little odd. I believe this makes it impossible to with just Cloud Script get a user's PlayFabId with only their Username.
Correct. In the Admin API set, the thinking was that it would be needed for customer service tools you run. But in a server, you would normally have the player's PlayFabId already, either by it being the ID of the client connecting to the server (or calling the Cloud Script, in this case), or an ID the client sends in the query. The only context in which the client doesn't have a PlayFab ID should be when it's a username or email address entered by the player for a lookup, which can be done on the client.
2 People are following this question.