/** * Function to get the tenant id * * @param GetTenantId $parameters * @return GetTenantIdResponse */ public function getTenantId(){ try { return $this->userStoreManager->getTenantId(); } catch (Exception $ex) { var_dump( $ex->debug_message); throw new Exception("Unable to get the tenant Id.", 0, $ex); } }