{"id":1262,"date":"2010-02-01T09:38:57","date_gmt":"2010-02-01T07:38:57","guid":{"rendered":"http:\/\/contoso.se\/blog\/?p=1262"},"modified":"2010-02-01T09:38:57","modified_gmt":"2010-02-01T07:38:57","slug":"target-knowledge-to-a-group-of-users","status":"publish","type":"post","link":"http:\/\/contoso.se\/blog\/?p=1262","title":{"rendered":"Target knowledge to a group of users"},"content":{"rendered":"<p>I tested to modify my announcement customization management pack from <a href=\"http:\/\/contoso.se\/blog\/?p=1243\">this<\/a> post to extend the knowledge article\u00c2\u00a0class instead. It works really well, I can target knowledge articles to a group of users or to everyone. The following can be a little bit confusing if you have not <a href=\"http:\/\/contoso.se\/blog\/?p=1243\">read this first<\/a>, please do.<\/p>\n<ol>\n<li>Added one new property to the\u00c2\u00a0System.Knowledge.Article class, called Group<\/li>\n<li>On the extension tab of the knowledge article form,\u00c2\u00a0I configured target group for the article, for exaple 5 for all and 2 for HR<\/li>\n<li>Create a new dynamic group for each department, for example the HR group\n<ol>\n<li>Name: Contoso &#8211; Knowledge &#8211; 2 HR or Everyone<\/li>\n<li>Management Pack: Contoso Knowledge Extension (same as the class extension)<\/li>\n<li>Dynamic members<a href=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2010\/02\/SMKnow03.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-medium wp-image-1263\" title=\"SMKnow03\" src=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2010\/02\/SMKnow03-300x163.jpg\" alt=\"\" width=\"300\" height=\"163\" srcset=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2010\/02\/SMKnow03-300x163.jpg 300w, http:\/\/contoso.se\/blog\/wp-content\/uploads\/2010\/02\/SMKnow03.jpg 581w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\u00c2\u00a0<\/li>\n<li>For everything else in the group wizard I use default settings<\/li>\n<\/ol>\n<\/li>\n<li>Updated the security user roles from the <a href=\"http:\/\/contoso.se\/blog\/?p=1243\">other post<\/a> to include also this new group<\/li>\n<li>That would do it \ud83d\ude42<\/li>\n<\/ol>\n<p style=\"text-align: center;\"><a href=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2010\/02\/SMKnow01.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"size-medium wp-image-1264  aligncenter\" title=\"SMKnow01\" src=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2010\/02\/SMKnow01-300x287.jpg\" alt=\"\" width=\"300\" height=\"287\" srcset=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2010\/02\/SMKnow01-300x287.jpg 300w, http:\/\/contoso.se\/blog\/wp-content\/uploads\/2010\/02\/SMKnow01.jpg 347w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\u00c2\u00a0<\/p>\n<p style=\"text-align: center;\"><a href=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2010\/02\/SMKnow02.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"size-medium wp-image-1265  aligncenter\" title=\"SMKnow02\" src=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2010\/02\/SMKnow02-300x100.jpg\" alt=\"\" width=\"300\" height=\"100\" srcset=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2010\/02\/SMKnow02-300x100.jpg 300w, http:\/\/contoso.se\/blog\/wp-content\/uploads\/2010\/02\/SMKnow02-1024x342.jpg 1024w, http:\/\/contoso.se\/blog\/wp-content\/uploads\/2010\/02\/SMKnow02.jpg 1248w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\u00c2\u00a0<\/p>\n<div><span style=\"color: #0000ff; font-size: x-small;\"><span style=\"color: #0000ff; font-size: x-small;\">\u00c2\u00a0\u00c2\u00a0<\/span><\/span><\/div>\n<p><span style=\"color: #0000ff; font-size: x-small;\"><span style=\"color: #0000ff; font-size: x-small;\">\u00c2\u00a0<\/p>\n<p><\/span><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I tested to modify my announcement customization management pack from this post to extend the knowledge article\u00c2\u00a0class instead. It works really well, I can target knowledge articles to a group of users or to everyone. The following can be a little bit confusing if you have not read this first, please do. Added one new &hellip; <a href=\"http:\/\/contoso.se\/blog\/?p=1262\">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":[25],"tags":[],"_links":{"self":[{"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1262"}],"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=1262"}],"version-history":[{"count":3,"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1262\/revisions"}],"predecessor-version":[{"id":1268,"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1262\/revisions\/1268"}],"wp:attachment":[{"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1262"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1262"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1262"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}