PTFM-12437: Adding a wrapper for whoami calls