---
title: "Comment by Cezar Rosaneli on \"Building Multi-Tenant APEX Apps\" | Hashnode"
description: "HI, In my case, the customer have access to many companies, and he can change the company on a select menu on top navigation bar. How can I change the tenant_id"
url: "https://hashnode.com/posts/multi-tenant-apex-apps/6481d2d8acac168041180051/comment/6540049f503f3d9ea16915c9"
---

[Discussion](https://hashnode.com/posts/multi-tenant-apex-apps/6481d2d8acac168041180051)

Comment [Building Multi-Tenant APEX Apps](https://hashnode.com/posts/multi-tenant-apex-apps/6481d2d8acac168041180051)

[Cezar Rosaneli](https://hashnode.com/@rosaneli)

[Oct 30, 2023](https://hashnode.com/posts/multi-tenant-apex-apps/6481d2d8acac168041180051/comment/6540049f503f3d9ea16915c9)

HI, In my case, the customer have access to many companies, and he can change the company on a select menu on top navigation bar. How can I change the tenant\_id without forcing the user to logout and login again? Tks!

[Jon Dixon](https://hashnode.com/@orclapex)

[Oct 31, 2023](https://hashnode.com/posts/multi-tenant-apex-apps/6481d2d8acac168041180051/comment/6540049f503f3d9ea16915c9#reply-65406e5875a4d299aca39340)

Hi Cezar. Unfortunately, you can only call APEX\_SESSION.SET\_TENANT\_ID once per session. It would be great if this were not a limitation but it is right now.

[Cezar Rosaneli](https://hashnode.com/@rosaneli)

[Nov 2, 2023](https://hashnode.com/posts/multi-tenant-apex-apps/6481d2d8acac168041180051/comment/6540049f503f3d9ea16915c9#reply-6542fb919ba50faa874074e3)

Tks Jon!
