fixed identifier to get tenantId instead of id