{"id":3367,"date":"2019-08-30T00:08:51","date_gmt":"2019-08-30T07:08:51","guid":{"rendered":"https:\/\/developer.microsoft.com\/en-us\/office\/blogs\/?p=3367"},"modified":"2019-08-30T00:08:51","modified_gmt":"2019-08-30T07:08:51","slug":"breaking-changes-application-and-serviceprincipal-api-updates-in-microsoft-graph-beta","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/breaking-changes-application-and-serviceprincipal-api-updates-in-microsoft-graph-beta\/","title":{"rendered":"Breaking changes: Application and ServicePrincipal API updates in Microsoft Graph beta"},"content":{"rendered":"<p>We&#8217;re updating the\u00a0<u><a href=\"https:\/\/docs.microsoft.com\/en-us\/graph\/api\/resources\/application?view=graph-rest-beta\">application,<\/a><\/u>\u00a0<u><a href=\"\/\/docs.microsoft.com\/en-us\/graph\/api\/resources\/serviceprincipal?view=graph-rest-beta\">servicePrincipal<\/a><\/u> and <a href=\"\/\/docs.microsoft.com\/en-us\/graph\/api\/resources\/oauth2permissiongrant?view=graph-rest-beta\">oAuth2PermissionGrant<\/a>\u00a0Microsoft Graph APIs in public preview (beta). These changes will roll out in phases over the next few weeks.<\/p>\n<h2>Changes to properties<\/h2>\n<table style=\"border: 1px solid;margin-top: 10px\">\n<thead>\n<tr style=\"border: 1px solid\">\n<td width=\"50%\"><strong>Change<\/strong><\/td>\n<td style=\"border: 1px solid\" width=\"50%\"><strong>Call to action<\/strong><\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"border: 1px solid\">\n<td>The <strong>orgRestrictions\u00a0<\/strong>property\u00a0will be removed from the\u00a0<a href=\"https:\/\/docs.microsoft.com\/graph\/api\/resources\/application?view=graph-rest-beta\">application<\/a> resource. This property was marked as &#8220;Reserved for future use&#8221; and Azure AD ignores the value of this property today.<\/td>\n<td style=\"border: 1px solid\">Writing to this property has no effect today. If you read this property today, update your clients as needed to handle this scenario.<\/td>\n<\/tr>\n<tr style=\"border: 1px solid\">\n<td>The <strong>startTime <\/strong>and <strong>expiryTime\u00a0<\/strong>properties\u00a0will be deleted from <a href=\"http:\/\/docs.microsoft.com\/graph\/api\/resources\/oauth2permissiongrant?view=graph-rest-beta\">oAuth2PermissonGrant<\/a>. Azure AD ignores the value of these properties today.<\/td>\n<td style=\"border: 1px solid\">Writing to these properties has no effect today. If you read these properties today, update your clients as needed to handle this scenario.<\/td>\n<\/tr>\n<tr style=\"border: 1px solid\">\n<td>The <strong>errorUrl\u00a0<\/strong>property\u00a0will be deleted from <a href=\"http:\/\/docs.microsoft.com\/graph\/api\/resources\/serviceprincipal?view=graph-rest-beta\">servicePrincipal<\/a>. Azure AD ignores the value of this property today.<\/td>\n<td style=\"border: 1px solid\">Writing to this property has no effect today. Update your clients as needed to handle this scenario.<\/td>\n<\/tr>\n<tr style=\"border: 1px solid\">\n<td>The <strong>signInAudience\u00a0<\/strong>property will be deleted from <a href=\"http:\/\/docs.microsoft.com\/graph\/api\/resources\/serviceprincipal?view=graph-rest-beta\">servicePrincipal<\/a>. Azure AD ignores the value of this property today.<\/td>\n<td style=\"border: 1px solid\">If you read this property today, update your clients as needed to handle this scenario.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Changes to methods<\/h2>\n<div>You can no longer use a PATCH operation on the\u00a0<a href=\"https:\/\/docs.microsoft.com\/graph\/api\/resources\/application?view=graph-rest-beta\">application<\/a>\u00a0or\u00a0 <a href=\"\/\/docs.microsoft.com\/en-us\/graph\/api\/resources\/serviceprincipal?view=graph-rest-beta\">servicePrincipal<\/a> objects to update\u00a0<u><a href=\"https:\/\/docs.microsoft.com\/graph\/api\/resources\/passwordcredential?view=graph-rest-beta\">passwordCredentials<\/a>.<\/u>\u00a0You can use the <a href=\"https:\/\/docs.microsoft.com\/graph\/api\/application-add-password?view=graph-rest-beta\">addPassword<\/a>\u00a0and removePassword methods to update the password for an application or a servicePrincipal.<\/div>\n<p><strong>addPassword<\/strong><\/p>\n<p>Request &#8211; application<\/p>\n<pre class=\"lang:default decode:true\" title=\"Request - application\">POST https:\/\/graph.microsoft.com\/beta\/applications\/{id}\/addPassword\n{\n    \"passwordCredential\": {\n        \"displayName\": \"Password friendly name\"\n    }\n}<\/pre>\n<p>Response &#8211; application<\/p>\n<pre class=\"lang:default decode:true\" title=\"Response - application\">{\n    \"@odata.context\": \"https:\/\/graph.microsoft.com\/beta\/$metadata#microsoft.graph.passwordCredential\",\n    \"customKeyIdentifier\": \"guid\",\n    \"endDateTime\": \"timestamp\",\n    \"keyId\": \"guid\",\n    \"startDateTime\": \"timestamp\",\n    \"secretText\": \"string\"\n    \"hint\": \"string\",\n    \"displayName\": \"string\"\n}<\/pre>\n<p>&nbsp;<\/p>\n<p>Request &#8211; servicePrincipal<\/p>\n<pre class=\"lang:default decode:true\" title=\"Request - servicePrincipal\">POST https:\/\/graph.microsoft.com\/beta\/servicePrincipals\/{id}\/addPassword\n{ \n    \"passwordCredential\": { \n        \"displayName\": \"Password friendly name\" \n    } \n}<\/pre>\n<p>Response &#8211; servicePrincipal<\/p>\n<pre class=\"lang:default decode:true\" title=\"Response - servicePrincipal\">{\n    \"@odata.context\": \"https:\/\/graph.microsoft.com\/beta\/$metadata#microsoft.graph.passwordCredential\",\n    \"customKeyIdentifier\": \"guid\",\n    \"endDateTime\": \"timestamp\",\n    \"keyId\": \"guid\",\n    \"startDateTime\": \"timestamp\",\n    \"secretText\": \"string\"\n    \"hint\": \"string\",\n    \"displayName\": \"string\"\n}<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>removePassword<\/strong><\/p>\n<p>Request &#8211; application<\/p>\n<pre class=\"lang:default decode:true\" title=\"Request - application\">POST\u202f https:\/\/graph.microsoft.com\/beta\/applications\/{id}\/removePassword\n{\n    \"keyId\": \"key id\"\n}<\/pre>\n<p>Response &#8211; application<\/p>\n<pre class=\"lang:default decode:true\" title=\"Response - application\">204 No content<\/pre>\n<p>&nbsp;<\/p>\n<p>Request &#8211; servicePrincipal<\/p>\n<pre class=\"lang:default decode:true\">POST https:\/\/graph.microsoft.com\/beta\/servicePrincipals\/{id}\/removePassword\n{\n    \"keyId\": \"key id\"\n}<\/pre>\n<p>Response &#8211; servicePrincipal<\/p>\n<pre class=\"lang:default decode:true\">204 No content<\/pre>\n<h2><\/h2>\n<h2>Tell us what you think<\/h2>\n<p>We welcome your feedback on\u00a0<u><a href=\"https:\/\/nam06.safelinks.protection.outlook.com\/?url=https%3A%2F%2Fofficespdev.uservoice.com%2Fforums%2F224641-feature-requests-and-feedback%2Fcategory%2F101632-microsoft-graph-o365-rest-apis&amp;data=04%7C01%7Csureshja%40microsoft.com%7C731018a8bae34857f2b008d72cc98ddc%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637027116485014978%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C-1&amp;sdata=7%2BxKgZ%2BVJQITLiu%2FjXIJtE1VKsjqEh6kfrwr%2FvZFupo%3D&amp;reserved=0\">UserVoice<\/a><\/u>. If you have questions, reach out to\u00a0us on\u00a0<u><a href=\"https:\/\/nam06.safelinks.protection.outlook.com\/?url=https%3A%2F%2Fstackoverflow.com%2Fquestions%2Ftagged%2Fmicrosoft-graph&amp;data=04%7C01%7Csureshja%40microsoft.com%7C731018a8bae34857f2b008d72cc98ddc%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637027116485024974%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C-1&amp;sdata=Z6XxT84QdWUBys5RrxBfbJV2q3QqUd9R%2B70kl78ihf0%3D&amp;reserved=0\">Stack Overflow<\/a><\/u>.<\/p>\n<p>-The Microsoft Identity Platform Team<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Breaking changes: Application and ServicePrincipal API updates in Microsoft Graph beta<\/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":[22],"class_list":["post-3367","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-microsoft-graph","category-microsoft-identity-platform","tag-azure-ad"],"acf":[],"blog_post_summary":"<p>Breaking changes: Application and ServicePrincipal API updates in Microsoft Graph beta<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts\/3367","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=3367"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts\/3367\/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=3367"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/categories?post=3367"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/tags?post=3367"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}