If you mean you want to get the PlayFabId(MasterPlayerAccountId) from EntityId(TitlePlayerAccountId), then you can use API GetProfile. To learn more about MasterPlayerAccountId and TitlePlayerAccountId, please refer to Available built-in entity types.
13 People are following this question.