LPS-35643 use companyId for portal entities since they won't have a groupId
LPS-35643 Autogenerated