Show or hide link in Sharepoint based on membership of M365 group

philburns 1 Reputation point
2024-11-06T16:47:04.54+00:00

I've got a sharepoint site with lots of links in the 'Navigation' section and that works fine so users have access to content based on their membership of a range of groups.

I'm trying to make a change so that an image is shown which itself is a link to the content, so I now have something like 20 individual images representing 20 different communities, some of us need to access all of them, but most users need just their own.

How do I ensure that the other images are hidden if the user is not a member of the relevant group?

Microsoft 365 and Office | SharePoint | Development
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. RaytheonXie_MSFT 40,471 Reputation points Microsoft External Staff
    2024-11-07T02:56:04.8533333+00:00

    Hi @philburns,

    I would recommend you use audience targeting with quick link web part as a workaround. You can assign "Target Audiences" to that web part. So that the links can be targeted to appear only to people who are members of a particular SharePoint group or audience.

    Image

    Here is the document for reference

    https://support.microsoft.com/en-us/office/target-content-to-a-specific-audience-on-a-sharepoint-site-68113d1b-be99-4d4c-a61c-73b087f48a81


    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.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.