Forum Discussion
nebuthomasmathew
Feb 04, 2024Copper Contributor
Audience Ids returning null | SharePoint REST API
Hi, On hitting the SharePoint REST API in the endpoint "_api/Web/Navigation/GetNodeById(2019)/AudienceIds", I am getting a NULL response as seen below But I have added SharePoint groups as au...
guylee
Nov 06, 2025Copper Contributor
I ran into this yesterday and finally found a solution. The issue is with the endpoint you are using. That is, you'll need to use either: _api/navigation/menustate?mapprovidername='CurrentNavigationSwitchableProvider' OR _api/navigation/menustate?mapprovidername='GlobalNavigationSwitchableProvider' and then search for your item. The Audience is a custom property which contains the Group Names (not the ids of the groups).