I'm working with the ms graph contacts api. Is it possible to filter public and private contacts using filter options?
2
votes
2 Answers
1
votes
The sensitivity property isn't surfaced for Contact or Message objects in Microsoft Graph.
This property is only surfaced in the Event object where it is used to determine how a given event is rendered for other users within the organization.
1
votes
I found the legacy extended property filter method. This worked for me:
/me/contacts?$filter=singleValueExtendedProperties/Any(ep: ep/id eq 'Integer 0x0036' and cast(ep/value, Edm.Int32) eq 2)
Used this resource. The bottom of that page also demonstrates the cast to integer. The value 0x0036 is for PR_SENSITIVITY per here. The value 2 is 'Private' per here.
publicvsprivate? - Marc LaFleur