I have a SOQL query inside my one of trigger
User newOwner = [SELECT ManagerId FROM User WHERE Id=:newCase.OwnerId];
But this query returns ManagerId Null. I checked manually, Manager is defined on owner record.
This soql returns null only when context user is a partner user. As a salesforce user it works fine.
Any idea what is missing?