{"id":4004,"date":"2014-05-05T09:21:55","date_gmt":"2014-05-05T07:21:55","guid":{"rendered":"http:\/\/contoso.se\/blog\/?p=4004"},"modified":"2014-05-05T09:21:55","modified_gmt":"2014-05-05T07:21:55","slug":"user-does-not-have-permissions-to-access-the-service-management-api","status":"publish","type":"post","link":"http:\/\/contoso.se\/blog\/?p=4004","title":{"rendered":"User does not have permissions to access the Service Management API"},"content":{"rendered":"<p>When playing with Windows Azure Pack I received this error. When searching on the Internet the solution is to add the user to the local &#8220;MgmtSvc Operators&#8221; security group. That is a bit difficult, as Microsoft removed that group in Update 1. Instead you should use PowerShell &#8220;Add-MgmtSvcAdminUser&#8221; to assign users permissions. When I ran get-MgmtSvcAdminUser I had the WAP server local administrator&#8217;s group member of the WAP Admin role, and my user was member of that local administrator group. Normally a member of a group has all permissions that the group has, but not in this case, instead I needed to add my user account direct to the admin role. Thanks to the oracle <a href=\"http:\/\/blogs.litware.se\/\">Patrik Sundqvist<\/a> who enlighten me about that. I ran the following PowerShell line and then it worked\n<\/p>\n<blockquote>\n<p>Add-MgmtSvcAdminUser \u00e2\u20ac\u201cConnectionString &#8216;Server=SCDB01;Initial Catalog=Microsoft.MgmtSvc.Store;Trusted_Connection=True;&#8217; \u00e2\u20ac\u201cprincipal &#8216;demo\\anders.bengtsson&#8217;\n<\/p>\n<\/blockquote>\n<p>SCDB01 is the database server hosting the Microsoft.MgmtSvc.Store database. DEMO is the domain name.\n<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2014\/05\/050514_0721_Userdoesnot1.png\" alt=\"\"\/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>When playing with Windows Azure Pack I received this error. When searching on the Internet the solution is to add the user to the local &#8220;MgmtSvc Operators&#8221; security group. That is a bit difficult, as Microsoft removed that group in Update 1. Instead you should use PowerShell &#8220;Add-MgmtSvcAdminUser&#8221; to assign users permissions. When I ran &hellip; <a href=\"http:\/\/contoso.se\/blog\/?p=4004\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[63],"tags":[],"_links":{"self":[{"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4004"}],"collection":[{"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4004"}],"version-history":[{"count":1,"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4004\/revisions"}],"predecessor-version":[{"id":4005,"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4004\/revisions\/4005"}],"wp:attachment":[{"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4004"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4004"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4004"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}