# I need agent only view Omnichannel Rooms closed by himself and by another agent in the same departament

**URL:** <https://forums.rocket.chat/t/i-need-agent-only-view-omnichannel-rooms-closed-by-himself-and-by-another-agent-in-the-same-departament/13523>\
**Category:** Community Support\
**Created:** [March 8, 2022, 12:20pm UTC](https://forums.rocket.chat/t/i-need-agent-only-view-omnichannel-rooms-closed-by-himself-and-by-another-agent-in-the-same-departament/13523 "2022-03-08T12:20:38Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ALL](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/all/32/3575_2.png) [@ALL](https://forums.rocket.chat/u/ALL)\
**Post date:** [March 8, 2022, 12:20pm UTC](https://forums.rocket.chat/t/i-need-agent-only-view-omnichannel-rooms-closed-by-himself-and-by-another-agent-in-the-same-departament/13523/1 "2022-03-08T12:20:38Z")

</div>

I’m not able to configure it so that agents in a department can only view their department’s omnichannel conversations. Either they see conversations from all departments or they don’t see any conversations.

I tried to configure the Livechat Agent activating “Administration\permission\View Omnichannel Rooms closed by another agent in the same department”, but when testing I get the information that the agent does not have authorization.

Thanks for the help

### Server Setup Information

- Version of Rocket.Chat Server: 4.2.0
- Operating System:
- Deployment Method: 
- Number of Running Instances: 1
- DB Replicaset Oplog:
- NodeJS Version: v12.22.1
- MongoDB Version: 4.2.11
- Proxy: 
- Firewalls involved:

### Any additional Information

---

<div class="post-metadata">

**Author:** ![dudanogueira](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/dudanogueira/32/2529_2.png) [@dudanogueira](https://forums.rocket.chat/u/dudanogueira)\
**Post date:** [March 8, 2022, 5:36pm UTC](https://forums.rocket.chat/t/i-need-agent-only-view-omnichannel-rooms-closed-by-himself-and-by-another-agent-in-the-same-departament/13523/2 "2022-03-08T17:36:28Z")

</div>

Hi! welcome to our Forums!

Indeed, the **Manager** will have access to all chats while **Agents** will only be able to receive chats at the side bar **when** forwarded to them.

In EE edition you can have a more granular control with Units and Monitors, that may be what you are looking for.

After a the room is closed, agents still has access to it, so you can create an external interface for that using one of our REST APIs, for instance:

> **[Livechat Rooms list](https://developer.rocket.chat/reference/api/rest-api/endpoints/omnichannel/omnichannel-endpoints/rooms/livechat-rooms-list)**
>
> Retrieves a list of livechat rooms.

Hope I have helped!

---

<div class="post-metadata">

**Author:** ![ALL](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/all/32/3575_2.png) [@ALL](https://forums.rocket.chat/u/ALL)\
**Post date:** [March 8, 2022, 5:48pm UTC](https://forums.rocket.chat/t/i-need-agent-only-view-omnichannel-rooms-closed-by-himself-and-by-another-agent-in-the-same-departament/13523/3 "2022-03-08T17:48:30Z")

</div>

Ótima tarde Duda !

A demanda é que somente os colaboradores de um departamento consigam visualizar as conversas (Omnichanel) do seu departamento, em andamento e já fechadas. O objetivo é impedir, por exemplo que um colaborador de um departamento operacional possa ler conversas do departamento financeiro ou o RH por exemplo, visto que tais conversas podem conter dados sensíveis e que devem ficar restritos aquele departamento. (Todos os colaboradores estão com a permissão de Live Chat Agent)

---

<div class="post-metadata">

**Author:** ![dudanogueira](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/dudanogueira/32/2529_2.png) [@dudanogueira](https://forums.rocket.chat/u/dudanogueira)\
**Post date:** [March 8, 2022, 7:30pm UTC](https://forums.rocket.chat/t/i-need-agent-only-view-omnichannel-rooms-closed-by-himself-and-by-another-agent-in-the-same-departament/13523/4 "2022-03-08T19:30:18Z")

</div>

Esse seria o papel **Monitor** , e a separação seria feita pelas Unidades, como abaixo:

![image](https://us1.discourse-cdn.com/flex021/uploads/rocketchat/original/2X/4/42f278c09ea26444ba88fc26800153cbe8fe5120.png)

---

<div class="post-metadata">

**Author:** ![ALL](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/all/32/3575_2.png) [@ALL](https://forums.rocket.chat/u/ALL)\
**Post date:** [March 8, 2022, 7:41pm UTC](https://forums.rocket.chat/t/i-need-agent-only-view-omnichannel-rooms-closed-by-himself-and-by-another-agent-in-the-same-departament/13523/5 "2022-03-08T19:41:21Z")

</div>

Duda, estou usando a versão comunity.

---

<div class="post-metadata">

**Author:** ![dudanogueira](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/dudanogueira/32/2529_2.png) [@dudanogueira](https://forums.rocket.chat/u/dudanogueira)\
**Post date:** [March 8, 2022, 7:59pm UTC](https://forums.rocket.chat/t/i-need-agent-only-view-omnichannel-rooms-closed-by-himself-and-by-another-agent-in-the-same-departament/13523/6 "2022-03-08T19:59:14Z")

</div>

Sim. No caso, seria usar a API como alternativa.
