initial version with only getProfile & getRecordType methods
added more generic toIds() method