diff --git a/src/adapters/postgres/user-adapter.ts b/src/adapters/postgres/user-adapter.ts index 7f65cb9..509e45f 100644 --- a/src/adapters/postgres/user-adapter.ts +++ b/src/adapters/postgres/user-adapter.ts @@ -348,6 +348,7 @@ export class PostgresUserService implements IServicelocator { const userRoles = await this.getUserRoles(userId, tenantId); if (userRoles.code === "cohort_admin") { + tenantCohortRoleMapping.tenantId = ""; tenantCohortRoleMapping.cohortId = await this.getCohortIdsForTenant(userId, tenantId); } else if (userRoles.code === "tenant_admin") { tenantCohortRoleMapping.cohortId = [];