{"id":250,"date":"2021-06-18T10:42:10","date_gmt":"2021-06-18T08:42:10","guid":{"rendered":"https:\/\/hoyre.no\/dokumentasjon\/?post_type=teft-wiki&#038;p=250"},"modified":"2021-06-18T10:42:10","modified_gmt":"2021-06-18T08:42:10","slug":"roles","status":"publish","type":"teft-wiki","link":"https:\/\/hoyre.no\/dokumentasjon\/wiki\/roles\/","title":{"rendered":"Roles"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>First and foremost: A role in this context is a user\u2019s WordPress role \u2013 not a WinOrg position or a person\u2019s position in a local branch.<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">On H\u00f8yre\u2019s website and all sub sites, there are, in addition to the default WordPress roles, two roles that are automatically assigned to users. This document will explain how this works and what these custom roles does.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Automatically assigned roles<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Four times every day, more specifically:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>05:55<\/li><li>07:55<\/li><li>12:55<\/li><li>22:55<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">..a job runs that checks the WinOrg positions of every user on hoyre.no and assigns the correct role(s), both on the main site and on all the sub sites the user belongs to. This job also takes care of adding or removing users from sub sites based on any new information from WinOrg (via Sesam, more on that later) about which branch(es) the user has positions at.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">WinOrg positions -&gt; WordPress roles<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Here\u2019s an overview of how the assignment of roles work.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>If the <code>CommitteeCode<\/code> is <code>ANS<\/code>, the user will be assigned the <code>H\u00f8yre Advanced Editor<\/code> role on the site of the branch the position belongs to and any child branches\u2019 sites.<\/li><li>If the <code>PositionCode<\/code> is either <code>FYS<\/code>, <code>SJS<\/code> or <code>SIR<\/code>, the user will be assigned the <code>H\u00f8yre Advanced Editor<\/code> role on the site of the branch the position belongs to and any child branches\u2019 sites.<\/li><li>If the <code>PositionCode<\/code> is <code>INR<\/code>, the user will be assigned the <code>H\u00f8yre Basic Editor<\/code> role on the site of the branch the position belongs to.<\/li><li>If the <code>PositionCode<\/code> is <code>HIT<\/code>, the user will be assigned the <code>H\u00f8yre Advanced Editor<\/code> only on the main site.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Committeecode<\/th><th>positioncode<\/th><th>role<\/th><th>Sites<\/th><\/tr><\/thead><tbody><tr><td>ANS<\/td><td><\/td><td>H\u00f8yre Advanced Editor<\/td><td>Branch + children<\/td><\/tr><tr><td><\/td><td>FYS<\/td><td>H\u00f8yre Advanced Editor<\/td><td>Branch + children<\/td><\/tr><tr><td><\/td><td>SJS<\/td><td>H\u00f8yre Advanced Editor<\/td><td>Branch + children<\/td><\/tr><tr><td><\/td><td>SIR<\/td><td>H\u00f8yre Advanced Editor<\/td><td>Branch + children<\/td><\/tr><tr><td><\/td><td>INR<\/td><td>H\u00f8yre Basic Editor<\/td><td>Branch<\/td><\/tr><tr><td><\/td><td>HIT<\/td><td>H\u00f8yre Advanced Editor<\/td><td>Main site<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">There\u2019s a mechanism in place that ensures that no user has both the <code>H\u00f8yre Advanced Editor<\/code> <strong>and<\/strong> the <code>H\u00f8yre Basic Editor<\/code> roles on one the same site. If both should be assigned based on the rules above, only the <code>H\u00f8yre Advanced Editor<\/code> will be kept.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Super Admins<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A few selected users have the <code>Super Admin<\/code> role. This role basically gives the user full access to every site on the network \u2013 although there are some restrictions: A <code>Super Admin<\/code> can not manage the network and does not see the \u201cNetwork Administration\u201d option in WordPress. Despite this, a <code>Super Admin<\/code> have access to manage any site by going directly to its administration page:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/hoyre.no\/SITE\/wp-admin\/\">https:\/\/hoyre.no\/SITE\/wp-admin\/<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">H\u00f8yre Advanced Editor<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">This role is an editor role that has access to most of the editorial tools in the dashboard. All blocks are allowed in the editor, although some other parts of the editor has been removed.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">H\u00f8yre Basic Editor<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">This role is an editor role that only have access to the most basic editorial tools, mainly:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Articles<\/li><li>Media library<\/li><li>Events<\/li><li>Customizer<\/li><\/ul>\n","protected":false},"parent":0,"menu_order":0,"template":"","meta":{"teft_cards_image_url":"","teft_cards_custom_pretitle":"","teft_cards_image_id":0,"teft_cards_image_focal_point_x":0,"teft_cards_image_focal_point_y":0,"teft_cards_title":"","teft_cards_excerpt":"","teft_show_chapters":false,"footnotes":""},"teft-wiki-topic":[7],"teft-wiki-audience":[],"class_list":["post-250","teft-wiki","type-teft-wiki","status-publish","hentry","teft-wiki-topic-general"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Roles - Dokumentasjon<\/title>\n<meta name=\"robots\" content=\"noindex, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<meta property=\"og:locale\" content=\"nb_NO\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Roles - Dokumentasjon\" \/>\n<meta property=\"og:description\" content=\"First and foremost: A role in this context is a user\u2019s WordPress role \u2013 not a WinOrg position or a [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/hoyre.no\/dokumentasjon\/wiki\/roles\/\" \/>\n<meta property=\"og:site_name\" content=\"Dokumentasjon\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Ansl. lesetid\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutter\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/hoyre.no\\\/dokumentasjon\\\/wiki\\\/roles\\\/\",\"url\":\"https:\\\/\\\/hoyre.no\\\/dokumentasjon\\\/wiki\\\/roles\\\/\",\"name\":\"Roles - Dokumentasjon\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/hoyre.no\\\/dokumentasjon\\\/#website\"},\"datePublished\":\"2021-06-18T08:42:10+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/hoyre.no\\\/dokumentasjon\\\/wiki\\\/roles\\\/#breadcrumb\"},\"inLanguage\":\"nb-NO\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/hoyre.no\\\/dokumentasjon\\\/wiki\\\/roles\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/hoyre.no\\\/dokumentasjon\\\/wiki\\\/roles\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Til hoyre.no\",\"item\":\"https:\\\/\\\/hoyre.no\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Home\",\"item\":\"https:\\\/\\\/hoyre.no\\\/dokumentasjon\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"General\",\"item\":\"https:\\\/\\\/hoyre.no\\\/dokumentasjon\\\/wiki-topic\\\/general\\\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Roles\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/hoyre.no\\\/dokumentasjon\\\/#website\",\"url\":\"https:\\\/\\\/hoyre.no\\\/dokumentasjon\\\/\",\"name\":\"Dokumentasjon\",\"description\":\"Bare enda et H\u00f8yres nettsteder-nettsted\",\"publisher\":{\"@id\":\"https:\\\/\\\/hoyre.no\\\/dokumentasjon\\\/#organization\"},\"inLanguage\":\"nb-NO\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/hoyre.no\\\/dokumentasjon\\\/#organization\",\"name\":\"Dokumentasjon\",\"url\":\"https:\\\/\\\/hoyre.no\\\/dokumentasjon\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"nb-NO\",\"@id\":\"https:\\\/\\\/hoyre.no\\\/dokumentasjon\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/hoyre.no\\\/content\\\/uploads\\\/sites\\\/2\\\/2020\\\/07\\\/dokumentasjon-logo.svg\",\"contentUrl\":\"https:\\\/\\\/hoyre.no\\\/content\\\/uploads\\\/sites\\\/2\\\/2020\\\/07\\\/dokumentasjon-logo.svg\",\"width\":821,\"height\":216,\"caption\":\"Dokumentasjon\"},\"image\":{\"@id\":\"https:\\\/\\\/hoyre.no\\\/dokumentasjon\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Roles - Dokumentasjon","robots":{"index":"noindex","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"og_locale":"nb_NO","og_type":"article","og_title":"Roles - Dokumentasjon","og_description":"First and foremost: A role in this context is a user\u2019s WordPress role \u2013 not a WinOrg position or a [&hellip;]","og_url":"https:\/\/hoyre.no\/dokumentasjon\/wiki\/roles\/","og_site_name":"Dokumentasjon","twitter_card":"summary_large_image","twitter_misc":{"Ansl. lesetid":"3 minutter"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/hoyre.no\/dokumentasjon\/wiki\/roles\/","url":"https:\/\/hoyre.no\/dokumentasjon\/wiki\/roles\/","name":"Roles - Dokumentasjon","isPartOf":{"@id":"https:\/\/hoyre.no\/dokumentasjon\/#website"},"datePublished":"2021-06-18T08:42:10+00:00","breadcrumb":{"@id":"https:\/\/hoyre.no\/dokumentasjon\/wiki\/roles\/#breadcrumb"},"inLanguage":"nb-NO","potentialAction":[{"@type":"ReadAction","target":["https:\/\/hoyre.no\/dokumentasjon\/wiki\/roles\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/hoyre.no\/dokumentasjon\/wiki\/roles\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Til hoyre.no","item":"https:\/\/hoyre.no"},{"@type":"ListItem","position":2,"name":"Home","item":"https:\/\/hoyre.no\/dokumentasjon\/"},{"@type":"ListItem","position":3,"name":"General","item":"https:\/\/hoyre.no\/dokumentasjon\/wiki-topic\/general\/"},{"@type":"ListItem","position":4,"name":"Roles"}]},{"@type":"WebSite","@id":"https:\/\/hoyre.no\/dokumentasjon\/#website","url":"https:\/\/hoyre.no\/dokumentasjon\/","name":"Dokumentasjon","description":"Bare enda et H\u00f8yres nettsteder-nettsted","publisher":{"@id":"https:\/\/hoyre.no\/dokumentasjon\/#organization"},"inLanguage":"nb-NO"},{"@type":"Organization","@id":"https:\/\/hoyre.no\/dokumentasjon\/#organization","name":"Dokumentasjon","url":"https:\/\/hoyre.no\/dokumentasjon\/","logo":{"@type":"ImageObject","inLanguage":"nb-NO","@id":"https:\/\/hoyre.no\/dokumentasjon\/#\/schema\/logo\/image\/","url":"https:\/\/hoyre.no\/content\/uploads\/sites\/2\/2020\/07\/dokumentasjon-logo.svg","contentUrl":"https:\/\/hoyre.no\/content\/uploads\/sites\/2\/2020\/07\/dokumentasjon-logo.svg","width":821,"height":216,"caption":"Dokumentasjon"},"image":{"@id":"https:\/\/hoyre.no\/dokumentasjon\/#\/schema\/logo\/image\/"}}]}},"distributor_meta":false,"distributor_terms":false,"distributor_media":false,"distributor_original_site_name":"Dokumentasjon","distributor_original_site_url":"https:\/\/hoyre.no\/dokumentasjon","push-errors":false,"_links":{"self":[{"href":"https:\/\/hoyre.no\/dokumentasjon\/wp-json\/wp\/v2\/teft-wiki\/250","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hoyre.no\/dokumentasjon\/wp-json\/wp\/v2\/teft-wiki"}],"about":[{"href":"https:\/\/hoyre.no\/dokumentasjon\/wp-json\/wp\/v2\/types\/teft-wiki"}],"version-history":[{"count":2,"href":"https:\/\/hoyre.no\/dokumentasjon\/wp-json\/wp\/v2\/teft-wiki\/250\/revisions"}],"predecessor-version":[{"id":252,"href":"https:\/\/hoyre.no\/dokumentasjon\/wp-json\/wp\/v2\/teft-wiki\/250\/revisions\/252"}],"wp:attachment":[{"href":"https:\/\/hoyre.no\/dokumentasjon\/wp-json\/wp\/v2\/media?parent=250"}],"wp:term":[{"taxonomy":"teft-wiki-topic","embeddable":true,"href":"https:\/\/hoyre.no\/dokumentasjon\/wp-json\/wp\/v2\/teft-wiki-topic?post=250"},{"taxonomy":"teft-wiki-audience","embeddable":true,"href":"https:\/\/hoyre.no\/dokumentasjon\/wp-json\/wp\/v2\/teft-wiki-audience?post=250"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}