Hi,
If the Graph API do not suppor tit, I will investigate other posibilities.
BR
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi,
I can query MS Graph Pages and filter them using the api(https://learn.microsoft.com/en-us/graph/filter-query-parameter), but I do not know how to filter by the Audience field(_ModernAudienceTargetUserField ?). What is more the Audience field is not returned by the MS Graph with all the fields in response.
I'm using the https://graph.microsoft.com/v1.0/sites/{id}/pages endpoint
I have tried as well with the https://graph.microsoft.com/v1.0/search/query but also here I do not know how to filter by Audience.
{
"requests": [
{
"entityTypes": [
"listItem"
],
"query": {
"queryString": "aspx path:\"https://xxxx.sharepoint.com/sites/s1\""
}
}
]
}
How can I query SharePoint Pages filtering them by Target Audiences?
PS. I'm using the application authentication with permission Sites.Selected of type Application and I can reach successfully pages of the site I'm quering.
Hi,
If the Graph API do not suppor tit, I will investigate other posibilities.
BR