{"id":928,"date":"2023-06-16T15:04:03","date_gmt":"2023-06-16T13:04:03","guid":{"rendered":"https:\/\/www.ume.li\/blog\/?p=928"},"modified":"2023-06-16T15:04:03","modified_gmt":"2023-06-16T13:04:03","slug":"small-python-script-to-tag-profiles","status":"publish","type":"post","link":"https:\/\/www.ume.li\/blog\/2023\/06\/16\/small-python-script-to-tag-profiles\/","title":{"rendered":"Small python script to tag profiles"},"content":{"rendered":"<p>Ever had the need to add one or more tag to one or more profiles ?<\/p>\n<p>Recently I had to tag all our profiles based on their department. One option would have been to add the department properly in LDAP and push that using SDI to the department field. Or I could create a custom assembly line to push the tags&#8230;. But I wanted something lightweight, flexible, modern&#8230;.<\/p>\n<p>I&#8217;ve created a small python script that can add and remove tags from one or more profile:<br \/>\n<a href=\"https:\/\/github.com\/umeli\/connections-profile-tagger\">https:\/\/github.com\/umeli\/connections-profile-tagger<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ever had the need to add one or more tag to one or more profiles ? Recently I had to<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23],"tags":[100,101,103,102],"class_list":["post-928","post","type-post","status-publish","format-standard","hentry","category-connections","tag-api","tag-profile","tag-tag","tag-tags"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.2 - aioseo.com -->\n\t<meta name=\"description\" content=\"Ever had the need to add one or more tag to one or more profiles ? Recently I had to tag all our profiles based on their department. One option would have been to add the department properly in LDAP and push that using SDI to the department field. Or I could create a custom\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"umeli\"\/>\n\t<meta name=\"keywords\" content=\"api,profile,tag,tags,connections\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.ume.li\/blog\/2023\/06\/16\/small-python-script-to-tag-profiles\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.2\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Urs Meli&#039;s Blog\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Small python script to tag profiles | Urs Meli&#039;s Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"Ever had the need to add one or more tag to one or more profiles ? Recently I had to tag all our profiles based on their department. One option would have been to add the department properly in LDAP and push that using SDI to the department field. Or I could create a custom\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.ume.li\/blog\/2023\/06\/16\/small-python-script-to-tag-profiles\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2023-06-16T13:04:03+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2023-06-16T13:04:03+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@umeli\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Small python script to tag profiles | Urs Meli&#039;s Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Ever had the need to add one or more tag to one or more profiles ? Recently I had to tag all our profiles based on their department. One option would have been to add the department properly in LDAP and push that using SDI to the department field. Or I could create a custom\" \/>\n\t\t<meta name=\"twitter:creator\" content=\"@umeli\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.ume.li\\\/blog\\\/2023\\\/06\\\/16\\\/small-python-script-to-tag-profiles\\\/#article\",\"name\":\"Small python script to tag profiles | Urs Meli's Blog\",\"headline\":\"Small python script to tag profiles\",\"author\":{\"@id\":\"https:\\\/\\\/www.ume.li\\\/blog\\\/author\\\/umeli\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.ume.li\\\/blog\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.ume.li\\\/blog\\\/2023\\\/06\\\/16\\\/small-python-script-to-tag-profiles\\\/#articleImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b722f3e7e78b4f1e2b994856370dd7327963f636c5b50078baa80c2c4e411165?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"umeli\"},\"datePublished\":\"2023-06-16T15:04:03+02:00\",\"dateModified\":\"2023-06-16T15:04:03+02:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.ume.li\\\/blog\\\/2023\\\/06\\\/16\\\/small-python-script-to-tag-profiles\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.ume.li\\\/blog\\\/2023\\\/06\\\/16\\\/small-python-script-to-tag-profiles\\\/#webpage\"},\"articleSection\":\"Connections, api, profile, tag, tags\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.ume.li\\\/blog\\\/2023\\\/06\\\/16\\\/small-python-script-to-tag-profiles\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ume.li\\\/blog\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.ume.li\\\/blog\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ume.li\\\/blog\\\/category\\\/connections\\\/#listItem\",\"name\":\"Connections\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ume.li\\\/blog\\\/category\\\/connections\\\/#listItem\",\"position\":2,\"name\":\"Connections\",\"item\":\"https:\\\/\\\/www.ume.li\\\/blog\\\/category\\\/connections\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ume.li\\\/blog\\\/2023\\\/06\\\/16\\\/small-python-script-to-tag-profiles\\\/#listItem\",\"name\":\"Small python script to tag profiles\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ume.li\\\/blog\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ume.li\\\/blog\\\/2023\\\/06\\\/16\\\/small-python-script-to-tag-profiles\\\/#listItem\",\"position\":3,\"name\":\"Small python script to tag profiles\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.ume.li\\\/blog\\\/category\\\/connections\\\/#listItem\",\"name\":\"Connections\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.ume.li\\\/blog\\\/#person\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.ume.li\\\/blog\\\/2023\\\/06\\\/16\\\/small-python-script-to-tag-profiles\\\/#personImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/bba650dede6888bd44d79e656db7b6564b4a7e7ba51445cc1c062dd769729e59?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"admin\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.ume.li\\\/blog\\\/author\\\/umeli\\\/#author\",\"url\":\"https:\\\/\\\/www.ume.li\\\/blog\\\/author\\\/umeli\\\/\",\"name\":\"umeli\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.ume.li\\\/blog\\\/2023\\\/06\\\/16\\\/small-python-script-to-tag-profiles\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b722f3e7e78b4f1e2b994856370dd7327963f636c5b50078baa80c2c4e411165?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"umeli\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.ume.li\\\/blog\\\/2023\\\/06\\\/16\\\/small-python-script-to-tag-profiles\\\/#webpage\",\"url\":\"https:\\\/\\\/www.ume.li\\\/blog\\\/2023\\\/06\\\/16\\\/small-python-script-to-tag-profiles\\\/\",\"name\":\"Small python script to tag profiles | Urs Meli's Blog\",\"description\":\"Ever had the need to add one or more tag to one or more profiles ? Recently I had to tag all our profiles based on their department. One option would have been to add the department properly in LDAP and push that using SDI to the department field. Or I could create a custom\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.ume.li\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.ume.li\\\/blog\\\/2023\\\/06\\\/16\\\/small-python-script-to-tag-profiles\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.ume.li\\\/blog\\\/author\\\/umeli\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.ume.li\\\/blog\\\/author\\\/umeli\\\/#author\"},\"datePublished\":\"2023-06-16T15:04:03+02:00\",\"dateModified\":\"2023-06-16T15:04:03+02:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.ume.li\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.ume.li\\\/blog\\\/\",\"name\":\"Urs Meli's Blog\",\"description\":\"Mostly harmless\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.ume.li\\\/blog\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Small python script to tag profiles | Urs Meli's Blog","description":"Ever had the need to add one or more tag to one or more profiles ? Recently I had to tag all our profiles based on their department. One option would have been to add the department properly in LDAP and push that using SDI to the department field. Or I could create a custom","canonical_url":"https:\/\/www.ume.li\/blog\/2023\/06\/16\/small-python-script-to-tag-profiles\/","robots":"max-image-preview:large","keywords":"api,profile,tag,tags,connections","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.ume.li\/blog\/2023\/06\/16\/small-python-script-to-tag-profiles\/#article","name":"Small python script to tag profiles | Urs Meli's Blog","headline":"Small python script to tag profiles","author":{"@id":"https:\/\/www.ume.li\/blog\/author\/umeli\/#author"},"publisher":{"@id":"https:\/\/www.ume.li\/blog\/#person"},"image":{"@type":"ImageObject","@id":"https:\/\/www.ume.li\/blog\/2023\/06\/16\/small-python-script-to-tag-profiles\/#articleImage","url":"https:\/\/secure.gravatar.com\/avatar\/b722f3e7e78b4f1e2b994856370dd7327963f636c5b50078baa80c2c4e411165?s=96&d=mm&r=g","width":96,"height":96,"caption":"umeli"},"datePublished":"2023-06-16T15:04:03+02:00","dateModified":"2023-06-16T15:04:03+02:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/www.ume.li\/blog\/2023\/06\/16\/small-python-script-to-tag-profiles\/#webpage"},"isPartOf":{"@id":"https:\/\/www.ume.li\/blog\/2023\/06\/16\/small-python-script-to-tag-profiles\/#webpage"},"articleSection":"Connections, api, profile, tag, tags"},{"@type":"BreadcrumbList","@id":"https:\/\/www.ume.li\/blog\/2023\/06\/16\/small-python-script-to-tag-profiles\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.ume.li\/blog\/#listItem","position":1,"name":"Home","item":"https:\/\/www.ume.li\/blog\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.ume.li\/blog\/category\/connections\/#listItem","name":"Connections"}},{"@type":"ListItem","@id":"https:\/\/www.ume.li\/blog\/category\/connections\/#listItem","position":2,"name":"Connections","item":"https:\/\/www.ume.li\/blog\/category\/connections\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.ume.li\/blog\/2023\/06\/16\/small-python-script-to-tag-profiles\/#listItem","name":"Small python script to tag profiles"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.ume.li\/blog\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.ume.li\/blog\/2023\/06\/16\/small-python-script-to-tag-profiles\/#listItem","position":3,"name":"Small python script to tag profiles","previousItem":{"@type":"ListItem","@id":"https:\/\/www.ume.li\/blog\/category\/connections\/#listItem","name":"Connections"}}]},{"@type":"Person","@id":"https:\/\/www.ume.li\/blog\/#person","name":"admin","image":{"@type":"ImageObject","@id":"https:\/\/www.ume.li\/blog\/2023\/06\/16\/small-python-script-to-tag-profiles\/#personImage","url":"https:\/\/secure.gravatar.com\/avatar\/bba650dede6888bd44d79e656db7b6564b4a7e7ba51445cc1c062dd769729e59?s=96&d=mm&r=g","width":96,"height":96,"caption":"admin"}},{"@type":"Person","@id":"https:\/\/www.ume.li\/blog\/author\/umeli\/#author","url":"https:\/\/www.ume.li\/blog\/author\/umeli\/","name":"umeli","image":{"@type":"ImageObject","@id":"https:\/\/www.ume.li\/blog\/2023\/06\/16\/small-python-script-to-tag-profiles\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/b722f3e7e78b4f1e2b994856370dd7327963f636c5b50078baa80c2c4e411165?s=96&d=mm&r=g","width":96,"height":96,"caption":"umeli"}},{"@type":"WebPage","@id":"https:\/\/www.ume.li\/blog\/2023\/06\/16\/small-python-script-to-tag-profiles\/#webpage","url":"https:\/\/www.ume.li\/blog\/2023\/06\/16\/small-python-script-to-tag-profiles\/","name":"Small python script to tag profiles | Urs Meli's Blog","description":"Ever had the need to add one or more tag to one or more profiles ? Recently I had to tag all our profiles based on their department. One option would have been to add the department properly in LDAP and push that using SDI to the department field. Or I could create a custom","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.ume.li\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.ume.li\/blog\/2023\/06\/16\/small-python-script-to-tag-profiles\/#breadcrumblist"},"author":{"@id":"https:\/\/www.ume.li\/blog\/author\/umeli\/#author"},"creator":{"@id":"https:\/\/www.ume.li\/blog\/author\/umeli\/#author"},"datePublished":"2023-06-16T15:04:03+02:00","dateModified":"2023-06-16T15:04:03+02:00"},{"@type":"WebSite","@id":"https:\/\/www.ume.li\/blog\/#website","url":"https:\/\/www.ume.li\/blog\/","name":"Urs Meli's Blog","description":"Mostly harmless","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.ume.li\/blog\/#person"}}]},"og:locale":"en_US","og:site_name":"Urs Meli's Blog","og:type":"article","og:title":"Small python script to tag profiles | Urs Meli's Blog","og:description":"Ever had the need to add one or more tag to one or more profiles ? Recently I had to tag all our profiles based on their department. One option would have been to add the department properly in LDAP and push that using SDI to the department field. Or I could create a custom","og:url":"https:\/\/www.ume.li\/blog\/2023\/06\/16\/small-python-script-to-tag-profiles\/","article:published_time":"2023-06-16T13:04:03+00:00","article:modified_time":"2023-06-16T13:04:03+00:00","twitter:card":"summary","twitter:site":"@umeli","twitter:title":"Small python script to tag profiles | Urs Meli's Blog","twitter:description":"Ever had the need to add one or more tag to one or more profiles ? Recently I had to tag all our profiles based on their department. One option would have been to add the department properly in LDAP and push that using SDI to the department field. Or I could create a custom","twitter:creator":"@umeli"},"aioseo_meta_data":{"post_id":"928","title":null,"description":null,"keywords":[],"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":[],"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":0,"frequency":"default","location":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2023-06-16 12:52:58","updated":"2025-07-09 09:55:06","seo_analyzer_scan_date":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.ume.li\/blog\/\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.ume.li\/blog\/category\/connections\/\" title=\"Connections\">Connections<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tSmall python script to tag profiles\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.ume.li\/blog\/"},{"label":"Connections","link":"https:\/\/www.ume.li\/blog\/category\/connections\/"},{"label":"Small python script to tag profiles","link":"https:\/\/www.ume.li\/blog\/2023\/06\/16\/small-python-script-to-tag-profiles\/"}],"_links":{"self":[{"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/posts\/928","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/comments?post=928"}],"version-history":[{"count":1,"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/posts\/928\/revisions"}],"predecessor-version":[{"id":929,"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/posts\/928\/revisions\/929"}],"wp:attachment":[{"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/media?parent=928"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/categories?post=928"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ume.li\/blog\/wp-json\/wp\/v2\/tags?post=928"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}