MODE-1920: Add principal implementation to the API