I'm looking to hide and show links on a SharePoint Communication site. So I enabled the Audience Targeting on the top menu.

But I discovered I could only use Microsoft 365 group or security groups in AD.

It doesn't work with SharePoint groups

Also I read some blogs that you can enable SharePoint Server Publishing infrastructure on Communication site but when I tried it I got an error. So its not enabled.

People also recommend using PNP but I read if you enable it on Communication site the top menu will disappear.

Does anyone know what would e the best solution for this?

Thanks in Advance.


1 Answer 1


First, you have to be aware that Azure Active Directory groups including security groups and Microsoft 365 groups are only supported in Target Audiences in Modern communication sites.

In classic experience sites, the Navigation links allow also SharePoint groups to be configured under audience targeting. If you have the Publishing Feature enabled. BUT, Classic publishing features are NOT available on modern communication sites.



  • Thanks Mohammed for your recommendations. But Activate SharePoint Server Publishing Infrastructure on Modern doesn't work on Comms site. Can you please confirm
    – naijacoder
    Commented Feb 3, 2023 at 6:13
  • You are welcome, as I mentioned in my answer, Classic publishing features are NOT available on modern communication sites. Commented Feb 3, 2023 at 16:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.