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.