CMS-4277 Implement rest service for listing principals - minor changes