{"id":4809,"date":"2020-06-12T14:33:48","date_gmt":"2020-06-12T21:33:48","guid":{"rendered":"https:\/\/officedevblogs.wpengine.com\/?p=4809"},"modified":"2020-06-12T14:33:48","modified_gmt":"2020-06-12T21:33:48","slug":"changes-to-risk-event-properties-and-identity-protection-apis-on-microsoft-graph","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/changes-to-risk-event-properties-and-identity-protection-apis-on-microsoft-graph\/","title":{"rendered":"Changes to risk event properties and Identity Protection APIs on Microsoft Graph"},"content":{"rendered":"<p>Hi folks! To make the user and event risk information presented by our signIns and Identity Protection APIs on Microsoft Graph more intuitive, we are announcing a few significant changes, detailed in this blog post.<\/p>\n<h3>New risk event type and property changes<\/h3>\n<p>Today we use enumerated types to represent the <strong>riskType<\/strong> property in both the <strong>riskDetections API<\/strong> and<strong> riskyUserHistoryItemAPI<\/strong> (in preview). We also use enumerated types for the <strong>riskEventTypes<\/strong> property in the <strong>signIns API <\/strong>(also in preview).\u00a0 Going forward we will represent these properties as strings. This change will simplify the process of adding signals to our schema, but more importantly it will provide typing consistency across our API surface so that in the future, all new risk event types we add to the Identity Protection or Sign In logs will appear as strings.\u00a0 To that end:<\/p>\n<p>We have introduced a new <strong>riskEventType<\/strong> (string) property to the <strong>riskDetections API<\/strong> and <strong>riskyUserHistoryItemAPI<\/strong> and will be retiring the current <strong>riskType<\/strong> (enum) property on September 9<sup>th<\/sup>, 2020.<\/p>\n<p>We have introduced a new <strong>riskEventsTypes_v2 (string)<\/strong> property to the <strong>signIns API<\/strong> and will be retiring the current <strong>riskEventTypes (enum)<\/strong> property on September 9<sup>th<\/sup>, 2020.<\/p>\n<p>Note that at an appropriate future date we plan to re-introduce <strong>riskEventTypes<\/strong> as a string typed property in the <strong>signIns API <\/strong>and will provide the community with timely updates.<\/p>\n<h4>What action do I need to take?<\/h4>\n<p>Please update any existing processes or integrations that use either of these APIs to use the new <strong>riskEventType<\/strong> or <strong>riskEventTypes_v2<\/strong> properties. We will only add new risk event types to these new properties and risk detection type information will only show up under the new property names. If you have existing queries that filter on the old properties, they will fail once the properties are removed from the API schema.<\/p>\n<p>The <strong>riskDetection<\/strong><strong> APIs<\/strong> are still in preview (beta). However, if you are using the <strong>signIns API<\/strong>, you may need to update queries on either the preview (beta) or production (v1.0) endpoint.<\/p>\n<p><strong>Example 1 (riskDetections)<\/strong><\/p>\n<p>Old query:<\/p>\n<p>GET https:\/\/graph.microsoft.com\/beta\/riskDetections?$filter=riskType eq &#8216;unfamiliarFeatures&#8217;<\/p>\n<p>New query:<\/p>\n<p>GET https:\/\/graph.microsoft.com\/beta\/riskDetections?$filter=riskEventType eq &#8216;unfamiliarFeatures&#8217; or riskLevel eq &#8216;medium&#8217;<\/p>\n<p><strong>Example 2 (signIns)<\/strong><\/p>\n<p>Old query:<\/p>\n<p>GET https:\/\/graph.microsoft.com\/beta\/auditLogs\/signIns?$filter=riskEventTypes eq &#8216;unfamiliarFeatures&#8217;<\/p>\n<p>New query:<\/p>\n<p>GET https:\/\/graph.microsoft.com\/beta\/auditLogs\/signIns?$filter=riskEventTypes_v2 eq &#8216;unfamiliarFeatures&#8217;<\/p>\n<h3>Introducing a new \/identityProtection segment in preview<\/h3>\n<p>The Identity Protection APIs that are currently available in the beta endpoint are at the root level of Microsoft Graph, ~\/riskDetections and ~\/riskyUsers. To make these APIs more discoverable and clustered with Identity Protection, we are moving them under a new \/identityProtection segment that will be introduced in beta on June 22<sup>nd<\/sup>, 2020.<\/p>\n<h4>What action do I need to take?<\/h4>\n<p>If you are currently using these APIs, you must move to the new path for these endpoints. Both paths, at the root level and under the \/identityProtection segment, will work in parallel until September 9, 2020. Once the retirement date is passed, the old path at the root level will no longer return data.<\/p>\n<p><strong>Example <\/strong><\/p>\n<p>Old query:<\/p>\n<p>GET https:\/\/graph.microsoft.com\/beta\/riskDetections<\/p>\n<p>New query:<\/p>\n<p>GET https:\/\/graph.microsoft.com\/beta\/identityProtection\/riskDetections<\/p>\n<h3>Summary of changes<\/h3>\n<h4>Property Changes<\/h4>\n<table width=\"1000\">\n<tbody>\n<tr>\n<td width=\"300\"><strong>API<\/strong><\/td>\n<td width=\"300\"><strong>Version<\/strong><\/td>\n<td width=\"300\"><strong>Old Property (enum)<\/strong><\/td>\n<td width=\"300\"><strong>New <\/strong><strong>(string)<\/strong><\/td>\n<td width=\"300\"><strong>Retirement date<\/strong><\/td>\n<\/tr>\n<tr>\n<td width=\"300\">riskDetection<\/td>\n<td width=\"300\">beta<\/td>\n<td width=\"300\">riskType<\/td>\n<td width=\"300\">riskEventType<\/td>\n<td width=\"300\"><strong>9\/9\/2020<\/strong><\/td>\n<\/tr>\n<tr>\n<td width=\"300\">riskyUsers (userRiskHistoryItem)<\/td>\n<td width=\"300\">beta<\/td>\n<td width=\"300\">riskType<\/td>\n<td width=\"300\">riskEventType<\/td>\n<td width=\"300\"><strong>9\/9\/2020<\/strong><\/td>\n<\/tr>\n<tr>\n<td width=\"300\">signIns<\/td>\n<td width=\"300\">beta<\/td>\n<td width=\"300\">riskEventTypes<\/td>\n<td width=\"300\">\n<p style=\"text-align: left\">riskEventTypes_v2<\/p>\n<\/td>\n<td width=\"300\"><strong>9\/9\/2020<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>Path Changes<\/h4>\n<table width=\"1000\">\n<tbody>\n<tr>\n<td width=\"300\"><strong>API<\/strong><\/td>\n<td width=\"300\"><strong>Version<\/strong><\/td>\n<td width=\"300\"><strong>Old Path<\/strong><\/td>\n<td width=\"300\">\n<p style=\"text-align: left\"><strong>Path to transition to <\/strong><\/p>\n<\/td>\n<td width=\"300\"><strong>Old path retirement date<\/strong><\/td>\n<\/tr>\n<tr>\n<td width=\"300\">riskDetection<\/td>\n<td width=\"300\">beta<\/td>\n<td width=\"300\">~\/riskDetections<\/td>\n<td width=\"300\">~\/identityProtection\/riskDetections<\/td>\n<td width=\"300\"><strong>9\/9\/2020<\/strong><\/td>\n<\/tr>\n<tr>\n<td width=\"300\">riskyUsers<\/td>\n<td width=\"300\">beta<\/td>\n<td width=\"300\">~\/riskyUsers<\/td>\n<td width=\"300\">~\/identityProtection\/riskyUsers<\/td>\n<td width=\"300\"><strong>9\/9\/2020<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p>Thank you in advance for transitioning to the new properties and segment to improve the navigability and consistency of our Microsoft Graph APIs. We are excited about these improvements to our APIs and extending the ability to developers to leverage the value of Azure AD Identity Protection detections.<\/p>\n<p>If you aren\u2019t yet using Azure AD Identity Protection, <a href=\"https:\/\/docs.microsoft.com\/azure\/active-directory\/identity-protection\/overview-identity-protection\">check it out here<\/a>&#8211; it\u2019s a powerful tool for protecting your identities!<\/p>\n<p>&nbsp;<\/p>\n<p>-Sarah Handler and Ben Siler, on behalf of the Identity Protection and IAM teams<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We\u2019re updating a couple preview APIs in the Identity Protection space.  We\u2019re changing the way that we\u2019re representing risk event types, and we\u2019re also introducing a new \/identityProtection segment to the Microsoft Graph. <\/p>\n","protected":false},"author":69077,"featured_media":25159,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[3,5],"tags":[],"class_list":["post-4809","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-microsoft-graph","category-microsoft-identity-platform"],"acf":[],"blog_post_summary":"<p>We\u2019re updating a couple preview APIs in the Identity Protection space.  We\u2019re changing the way that we\u2019re representing risk event types, and we\u2019re also introducing a new \/identityProtection segment to the Microsoft Graph. <\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts\/4809","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/users\/69077"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/comments?post=4809"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts\/4809\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/media\/25159"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/media?parent=4809"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/categories?post=4809"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/tags?post=4809"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}