left navigation based on logged in users.

Tinsaye Bekele 1 Reputation point
2021-10-29T01:35:14.583+00:00

I want to hide left navigation based on logged in users. I have left navigation with 3 links. 1. Submit Event(admin only) 2. List view(admin and user) 3. Export list(user)

SharePoint Server
SharePoint Server
A family of Microsoft on-premises document management and storage systems.
2,220 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,612 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,667 questions
SharePoint Server Development
SharePoint Server Development
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Development: The process of researching, productizing, and refining new or existing technologies.
1,573 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. CaseyYang-MSFT 10,321 Reputation points
    2021-10-29T07:30:19.193+00:00

    Hi @Tinsaye Bekele ,

    You could enable site navigation audience targeting option.

    Modern site:

    1.Create groups for users and admins if you didn't create.

    Microsoft 365 admin center > Teams & groups > Active teams & groups > Add a group

    Note: These groups should be Azure AD groups (including security groups and Microsoft 365 groups).

    144854-1.png

    2.Enable site navigation audience targeting and add group.

    Left navigation > edit > Enable site navigation audience targeting

    144786-2.png 144883-3.png

    144884-4.png

    3.Here is my test result:

    Users in this group:144935-5.png

    Users not in this group:144936-6.png

    Classic site:

    Site Settings > Look and Feel > Navigation > Edit > type group name

    1.145434-1.png 2. 145410-2.png


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. sadomovalex 3,626 Reputation points
    2021-10-29T14:13:44.803+00:00

    in classic Sharepoint it is also possible via audiences: go to Site settings > Navigation > Current navigation > Structural navigation > Add heading > in opened window specify target SP group in Audience field:

    144975-2021-10-29-17-11-14.png

    This link will be shown only to members of specified group.

    0 comments No comments

  3. Tinsaye Bekele 1 Reputation point
    2021-11-04T21:51:28.207+00:00

    Hi @CaseyYang-MSFT
    Management decided not to acitvate the sharepoint infrasture publishing feature so I just use Link webpart and put the link there and break the permission for visitor and click on the url of the link webpart and put it into the left navigation. By doing this, i am able to hide the link from users.
    Thanks for the follow up