# Dont work Multi-Tenancy in Self-Managed in zeebe spring boot

**URL:** <https://forum.camunda.io/t/dont-work-multi-tenancy-in-self-managed-in-zeebe-spring-boot/48839>\
**Category:** Camunda 8 Topics\
**Tags:** spring-boot-starter, self-managed, multitenancy\
**Created:** [November 16, 2023, 1:08pm UTC](https://forum.camunda.io/t/dont-work-multi-tenancy-in-self-managed-in-zeebe-spring-boot/48839 "2023-11-16T13:08:39Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mohammad\_Rahmani](https://forum.camunda.io/user_avatar/forum.camunda.io/mohammad_rahmani/32/27531_2.png) [@Mohammad\_Rahmani](https://forum.camunda.io/u/Mohammad_Rahmani)\
**Post date:** [November 16, 2023, 1:08pm UTC](https://forum.camunda.io/t/dont-work-multi-tenancy-in-self-managed-in-zeebe-spring-boot/48839/1 "2023-11-16T13:08:39Z")

</div>

hello  
i have a project with spring boot zeebe last version:  
io.camunda.spring  
spring-boot-starter-camunda  
8.3.1  
and my zeebe run in docker and i set Zeebe\_Gatewat\_ MultiTenancy\_ENABLE=true on docker compose but when i want to set a tenantId in my project show error that “multi-tenancy is not enabled”

---

<div class="post-metadata">

**Author:** ![nathan.loding](https://forum.camunda.io/user_avatar/forum.camunda.io/nathan.loding/32/24171_2.png) [@nathan.loding](https://forum.camunda.io/u/nathan.loding)\
**Post date:** [November 16, 2023, 7:15pm UTC](https://forum.camunda.io/t/dont-work-multi-tenancy-in-self-managed-in-zeebe-spring-boot/48839/2 "2023-11-16T19:15:11Z")

</div>

Hi @Mohammad_Rahmani - can you share more details? Are you only running Zeebe or are you running other services as well (such as Operate or Tasklist or Optimize)? How do you have authentication configured for Zeebe (are you using Identity)? How are you attempting to set the `tenantId`?

---

<div class="post-metadata">

**Author:** ![Mohammad\_Rahmani](https://forum.camunda.io/user_avatar/forum.camunda.io/mohammad_rahmani/32/27531_2.png) [@Mohammad\_Rahmani](https://forum.camunda.io/u/Mohammad_Rahmani)\
**Post date:** [November 18, 2023, 6:42am UTC](https://forum.camunda.io/t/dont-work-multi-tenancy-in-self-managed-in-zeebe-spring-boot/48839/3 "2023-11-18T06:42:02Z")

</div>

Hello @nathan.loding  
I use operate and tasklist with free licence of camunda.  
Im using keyclock as authentication provider and not using identity.  
I my application on application.yaml i set:  
Zeebe:  
Client:  
Default-tenant-id: example  
Thanks for your attention

---

<div class="post-metadata">

**Author:** ![nathan.loding](https://forum.camunda.io/user_avatar/forum.camunda.io/nathan.loding/32/24171_2.png) [@nathan.loding](https://forum.camunda.io/u/nathan.loding)\
**Post date:** [November 20, 2023, 3:41pm UTC](https://forum.camunda.io/t/dont-work-multi-tenancy-in-self-managed-in-zeebe-spring-boot/48839/4 "2023-11-20T15:41:00Z")

</div>

Hi @Mohammad_Rahmani - couple things:

- multi-tenancy requires Identity; multi-tenancy is a feature that is enabled by the full Camunda stack, not a feature that is fully enabled by Zeebe alone
- have you enabled multi-tenancy in all the other services? Just setting `ZEEBE_GATEWAY_MULTITENANCY_ENABLED` isn’t enough. Refer to the [documentation here](https://docs.camunda.io/docs/self-managed/concepts/multi-tenancy/); because you are using Docker, [this thread](https://forum.camunda.io/t/camunda-8-self-managed-multitenancy/48116/33) may be helpful also.
- even though you specified the default tenant ID, I believe you also need to go into Identity and configure that tenant

(Also, just in case: the free license is only for non-production use of Operate and Tasklist.)

---

<div class="post-metadata">

**Author:** ![Mohammad\_Rahmani](https://forum.camunda.io/user_avatar/forum.camunda.io/mohammad_rahmani/32/27531_2.png) [@Mohammad\_Rahmani](https://forum.camunda.io/u/Mohammad_Rahmani)\
**Post date:** [November 23, 2023, 3:12pm UTC](https://forum.camunda.io/t/dont-work-multi-tenancy-in-self-managed-in-zeebe-spring-boot/48839/5 "2023-11-23T15:12:55Z")

</div>

Thanks  
Yes i don’t use identity  
I use this issue and check again

---

<div class="post-metadata">

**Author:** ![aylao](https://forum.camunda.io/letter_avatar_proxy/v4/letter/a/5daacb/32.png) [@aylao](https://forum.camunda.io/u/aylao)\
**Post date:** [November 27, 2023, 12:31am UTC](https://forum.camunda.io/t/dont-work-multi-tenancy-in-self-managed-in-zeebe-spring-boot/48839/6 "2023-11-27T00:31:40Z")

</div>

is it work? I didnt work it.

---

<div class="post-metadata">

**Author:** ![Mohammad\_Rahmani](https://forum.camunda.io/user_avatar/forum.camunda.io/mohammad_rahmani/32/27531_2.png) [@Mohammad\_Rahmani](https://forum.camunda.io/u/Mohammad_Rahmani)\
**Post date:** [November 27, 2023, 12:12pm UTC](https://forum.camunda.io/t/dont-work-multi-tenancy-in-self-managed-in-zeebe-spring-boot/48839/7 "2023-11-27T12:12:42Z")

</div>

I don’t use identity it’s now  
I will install identity and send my feedback when test
