How to set a user not allowed to view other user information?
Asked by PPGod:

I need to set a user to only view a specified space, without other redundant permissions, and can't let him know how many people there are in the company and their personal information.

**Can this be done without using anonymous users?**

![xxx.png](https://community.atlassian.com/t5/image/serverpage/image-id/134933i007DFDE974FC9963/image-size/large?v=v2&px=999 "xxx.png")

The content in the red box is not allowed to be seen by this user. How do I set it up?


Answers:
author: Vitor LC
body: Hi [@PPGod](/t5/user/viewprofilepage/user-id/4251860) ,

As far as I know you don't have any effective solution to handle all that. I reckon he may be an external user to the company if he cannot have access to the people's directory.

If this is the case I would suggest:

* Add the user directly to the permissions of the space by accessing **Space Tools** \> **Permissions** \> **Individual Users section - Edit Permissions** \> add the username and set the permissions you wish him to have over the space
* If you have pages in the space you don't wish him to see set also the restrictions
* To hide the entire People Directory to specific users or groups I'm afraid it's only possible to do it for anonymous users or entirely for everyone...
* ... but you can at least hide the link in the top bar. Follow the instructions of Atlassian: [How to hide the People Directory from a Confluence group \| Confluence \| Atlassian Documentation](https://confluence.atlassian.com/confkb/how-to-hide-the-people-directory-from-a-confluence-group-720640250.html). These instructions show how to hide the link from groups, which is useful in case you have more people in the same circumstances (e.g. group "externals"). If this is a one case you can replace the #if there by:  
  `#if ($helper.action.remoteUser.name == "<username>")`

Hope it helps.

`Vitor`

comments: author: PPGod
body: ![Qxx.png](https://community.atlassian.com/t5/image/serverpage/image-id/135089iF5E29BF1E398E91E/image-size/large?v=v2&px=999 "Qxx.png")

**I can't find where to set itI can't find where to set it.**

**Is the code added to Custom HTML directly?**


author: KAGITHALA BABU ANVESH
body: Hello [@PPGod](/t5/user/viewprofilepage/user-id/4251860) ,

Please check this.

[https://confluence.atlassian.com/confkb/how-do-i-hide-all-updates-or-popular-from-the-dashboard-sidebar-879956248.html#:\~:text=There%20is%20currently%20no%20configuration,from%20the%20Discover%20Side%20Bar.](https://confluence.atlassian.com/confkb/how-do-i-hide-all-updates-or-popular-from-the-dashboard-sidebar-879956248.html#:~:text=There%20is%20currently%20no%20configuration,from%20the%20Discover%20Side%20Bar.)

Thanks,

Anvesh

comments: author: PPGod
body: How to set the sidebar to be visible to some users, and some users are not visible?


author: Nicolas Casel
body: [@PPGod](/t5/user/viewprofilepage/user-id/4251860) ,

To do this:

1) add these users into a new "sidebar-authorized-users" group

2) in "Space tools / Look and feel / Sidebar", enter this piece of code:

```
{show-if:match=any|group=sidebar-authorized-users}
{html}
<style>
.ia-fixed-sidebar{display:none;}
</style>
{html}
{show-if}
```


Tags: confluence-server

server