But, I cannot know whether the givenName and surname were changed to null since the Enumerate() or EnumerateKeysForValuesChangedToNil() methods don't return the values (nil).
var user models.Userable
...
b := user.GetBackingStore()
fmt.Println(b.GetInitializationCompleted())
fmt.Println(b.GetReturnOnlyChangedValues())
for i, v := range b.EnumerateKeysForValuesChangedToNil() {
fmt.Printf(" - %v, %+v\n", i, v)
}
for k, v := range b.Enumerate() {
fmt.Printf(" - %s, %+v\n", k, v)
}
I am trying to implement the delta query to track user changes.
For example, I changed
First name
andLast name
to empty on https://entra.microsoft.com/ .I got the below response. You can see
givenName
andsurname
are detected as null values.But, I cannot know whether the
givenName
andsurname
were changed to null since theEnumerate()
orEnumerateKeysForValuesChangedToNil()
methods don't return the values (nil).Another sample code to confirm the user data.
Also, the user data doesn't have both
givenName
andsurname
properties.In my debugging,
InMemoryBackingStore
doesn't handle a nil value inUser.GetFieldDeserializers()
method.Could you tell me how do I check both
givenName
andsurname
properties were changed to nil via msgraph-sdk-go API?Reference