Skip to main content


 

Symptoms


Null Email addresses
 

Diagnoses


NA
 

Resolution

Removing Exchange online license will remove the email properties value and thus K2 will also update its cache to null for email.
If you sync AD to AAD and the AD account has an email this will reflect in the AAD user as well.
What specific attribute in AAD K2 needs populated for email address to be cached
- GraphProperty.Mail
- props.Add(new AADProperty(AADUser.Email, "Mail", GraphProperty.Mail))
What API does the K2 Identity cache use to query AAD
- GraphClient v1
Is there a way to query this AAD user properties outside of K2

https://graph.microsoft.io/en-us/graph-explorer

Sample output with email

"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users/$entity",
"id": "81157906-5b1b-4b3b-ab58-b5411749ba1f",
"businessPhones": "],
"displayName": "Vernon Jardine",
"givenName": "Vernon",
"jobTitle": null,
"mail": "VernonJ@appitqa365.com",
"mobilePhone": "],
"officeLocation": null,
"preferredLanguage": "en-GB",
"surname": "Jardine",
"userPrincipalName": VernonJ@appitqa365.com

Sample without email
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users/$entity",
"id": "81157906-5b1b-4b3b-ab58-b5411749ba1f",
"businessPhones": "],
"displayName": "Vernon Jardine",
"givenName": "Vernon",
"jobTitle": null,
"mail": null,
"mobilePhone": "],
"officeLocation": null,
"preferredLanguage": "en-GB",
"surname": "Jardine",
"userPrincipalName": VernonJ@appitqa365.com




 
Be the first to reply!

Reply