question

TinsayeBekele-1561 avatar image
0 Votes"
TinsayeBekele-1561 asked CaseyYangMSFT-4714 commented

left navigation based on logged in users.

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)

office-sharepoint-onlinesharepoint-devoffice-sharepoint-server-developmentoffice-sharepoint-server-customizationsharepoint-workflow
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

CaseyYangMSFT-4714 avatar image
0 Votes"
CaseyYangMSFT-4714 answered CaseyYangMSFT-4714 converted comment to answer

Hi @TinsayeBekele-1561,

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.



1.png (26.1 KiB)
2.png (10.5 KiB)
3.png (15.2 KiB)
4.png (24.3 KiB)
5.png (3.6 KiB)
6.png (3.2 KiB)
1.png (13.0 KiB)
2.png (18.1 KiB)
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@CaseyYangMSFT-4714 I really appreciate for your response.
But I am in classic sharepoint and coulde not get access to activate the sharepoint publishting infrastracture feature which help to have a target audience.
so is there others way to do it ? like to hide/visible links in left navigation based on group permission.

0 Votes 0 ·

Hi @TinsayeBekele-1561,

Why you could not activate the sharepoint publishting infrastracture feature? Did you get any error messages? Per my knowledge in SharePoint it is not available to show/hide left navigation based on group permission. Like sadomovalex said, you could enable audience setting in classic SharePoint site. I have updated my answer.

0 Votes 0 ·

Hi @TinsayeBekele-1561,

I'm checking how the things are going on about this issue. Is there any progress on this issue?

0 Votes 0 ·
sadomovalex avatar image
0 Votes"
sadomovalex answered

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.



5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

TinsayeBekele-1561 avatar image
0 Votes"
TinsayeBekele-1561 answered CaseyYangMSFT-4714 commented

Hi @CaseyYangMSFT-4714
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

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @TinsayeBekele-1561,

Thanks for sharing your solution. I have converted your reply to answer. Please remember to accept your solution as answer. It will do great help to those who meet the similar question in this forum.

0 Votes 0 ·