The documentation says the parameter key is "principalKey", but it's actually just "key". The typescript types has it correct. https://developer.enonic.com/docs/xp/stable/api/lib-auth#getprofile