Method for getting pubkeys for user