# User shouldn't see Infrastrucuture/Hosts

**URL:** <https://forums.suse.com/t/user-shouldnt-see-infrastrucuture-hosts/6840>\
**Category:** General\
**Created:** [July 12, 2017, 7:58am UTC](https://forums.suse.com/t/user-shouldnt-see-infrastrucuture-hosts/6840 "2017-07-12T07:58:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![laszlocloud](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/laszlocloud/32/2439_2.png) [@laszlocloud](https://forums.suse.com/u/laszlocloud)\
**Post date:** [July 12, 2017, 7:58am UTC](https://forums.suse.com/t/user-shouldnt-see-infrastrucuture-hosts/6840/1 "2017-07-12T07:58:38Z")

</div>

Tried all the user roles (member and restricted, read-only), but all of them sees the Infrastructure/Hosts and Infrastructure/Containers views. And even as a read only user I’m able to delete containers on the hosts.

Now that RBAC works nicely with the Kubernetes infrastructure and users only see their own namespace, seeing hosts and containers on the Rancher UI seems excessive.

Is there a way to make those views disappear for users with lower access rights?

---

<div class="post-metadata">

**Author:** ![vincent](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/vincent/32/7156_2.png) [@vincent](https://forums.suse.com/u/vincent)\
**Post date:** [July 12, 2017, 9:33am UTC](https://forums.suse.com/t/user-shouldnt-see-infrastrucuture-hosts/6840/2 "2017-07-12T09:33:00Z")

</div>

No… but you cannot delete containers (or anything else) with (only) read-only permission.

---

<div class="post-metadata">

**Author:** ![laszlocloud](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/laszlocloud/32/2439_2.png) [@laszlocloud](https://forums.suse.com/u/laszlocloud)\
**Post date:** [July 12, 2017, 10:49am UTC](https://forums.suse.com/t/user-shouldnt-see-infrastrucuture-hosts/6840/3 "2017-07-12T10:49:22Z")

</div>

I guess that’s alright, perhaps I will record a feature request for this. Best not to show anything in my opinion.

But is this normal for a read-only user?

![](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/5c769f7603bf68db1873e9d3dda3496cda244e49.png)

---

<div class="post-metadata">

**Author:** ![vincent](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/vincent/32/7156_2.png) [@vincent](https://forums.suse.com/u/vincent)\
**Post date:** [July 12, 2017, 8:53pm UTC](https://forums.suse.com/t/user-shouldnt-see-infrastrucuture-hosts/6840/4 "2017-07-12T20:53:43Z")

</div>

For various dumb reasons the Delete action is shown to read only users because the UI doesn’t actually know if it’s available or not, but if you click it and have (only) read-only access to the environment it will fail and you’ll see this:

![](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/0/05c81fea9e97aec2fc16663a5b7a1ffe40dc0c5b.png)

![](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/a/a7ad1db7b6f7ccfea5a29d650350348151e47ff4.png)

But the presence of stop and restart (instead of exactly 3 options shown above) suggest you are not actually a read-only user of that environment. You can have multiple levels of access through different groups, being an admin of the whole install, etc and get the highest applicable access. The most common situations would be:

- You’re an Admin of the installation, so you’re going to have all access to all environments (whether added as a member of them at all or not)
- You have an entry that says `[you] [read-only]`, but also another one for `[some team] [member, restricted, or owner]` and you are a member of `some team`. Now you have a higher level and the read-only entry is irrelevant.

---

<div class="post-metadata">

**Author:** ![laszlocloud](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/laszlocloud/32/2439_2.png) [@laszlocloud](https://forums.suse.com/u/laszlocloud)\
**Post date:** [July 13, 2017, 7:09am UTC](https://forums.suse.com/t/user-shouldnt-see-infrastrucuture-hosts/6840/5 "2017-07-13T07:09:34Z")

</div>

It was an overlapping group membership indeed. Once I set all groups read-only, only the delete button was there. (and throwing error)

Thanks for help!
