{"id":425,"date":"2021-06-22T23:19:24","date_gmt":"2021-06-23T03:19:24","guid":{"rendered":"https:\/\/starshade.ca\/wordpress\/?p=425"},"modified":"2025-10-14T21:15:04","modified_gmt":"2025-10-15T01:15:04","slug":"slack-profile-field-migration-script","status":"publish","type":"post","link":"https:\/\/starshade.ca\/wordpress\/slack-profile-field-migration-script\/","title":{"rendered":"Slack Profile Field Migration Script"},"content":{"rendered":"<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"https:\/\/starshade.ca\/wordpress\/wp-content\/uploads\/2021\/06\/Screen-Shot-2021-06-25-at-1.29.52-PM-1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"670\" height=\"411\" src=\"https:\/\/starshade.ca\/wordpress\/wp-content\/uploads\/2021\/06\/Screen-Shot-2021-06-25-at-1.29.52-PM-1.png\" alt=\"\" class=\"wp-image-443\" srcset=\"https:\/\/starshade.ca\/wordpress\/wp-content\/uploads\/2021\/06\/Screen-Shot-2021-06-25-at-1.29.52-PM-1.png 670w, https:\/\/starshade.ca\/wordpress\/wp-content\/uploads\/2021\/06\/Screen-Shot-2021-06-25-at-1.29.52-PM-1-300x184.png 300w\" sizes=\"auto, (max-width: 670px) 100vw, 670px\" \/><\/a><\/figure>\n<\/div>\n\n<div class=\"multilingual-block\" data-default-lang=\"en\"><div class=\"multilingual-switcher\"><button class=\"lang-toggle active\" data-lang=\"en\" title=\"English\">EN<\/button><button class=\"lang-toggle\" data-lang=\"fr\" title=\"Fran\u00e7ais\">FR<\/button><button class=\"lang-toggle\" data-lang=\"ga\" title=\"Gaeilge\">GA<\/button><\/div><div class=\"lang-content\" data-lang=\"en\">If you have occasion to copy\/migrate values from one profile field to another in Slack, here&#8217;s a script to do just that.<\/div><div class=\"lang-content\" data-lang=\"fr\" style=\"display:none;\">Si vous avez l&#8217;occasion de copier\/migrer des valeurs d&#8217;un champ de profil \u00e0 un autre dans Slack, voici un script pour faire exactement cela.<\/div><div class=\"lang-content\" data-lang=\"ga\" style=\"display:none;\">M\u00e1s f\u00e9idir leat luachanna a ch\u00f3ipe\u00e1il\/a aistri\u00fa \u00f3 r\u00e9imse pr\u00f3if\u00edle amh\u00e1in go r\u00e9imse eile i Slack, seo script chun \u00e9 sin a dh\u00e9anamh.<\/div><\/div>\n\n\n<p>Slack has had the same built-in profile fields for quite a while now, including <em>Title<\/em>, <em>Phone<\/em>,<em> Real Name<\/em> &amp; <em>Display Name<\/em>, but in June 2021 (?!) Slack has got around to adding a built-in field for <em>Pronoun<\/em>s. This means that a person&#8217;s pronouns can show up as prominently as a user&#8217;s job title, which has come to be approximately the standard nowadays online.<br>Most workspaces that would be interested in this field have had a <a href=\"https:\/\/slack.com\/intl\/en-ca\/help\/articles\/212281478-Customize-member-profiles\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"https:\/\/slack.com\/intl\/en-ca\/help\/articles\/212281478-Customize-member-profiles\">custom field<\/a> for pronouns for years now, however the new field has unfortunately not come with a mechanism to migrate the old field over. Therefore, I put together a bash script to automate the migration of Slack profile fields for one or all users of a workspace, be it the new pronouns field, or any others besides. Here&#8217;s <a href=\"https:\/\/gist.github.com\/zk-1\/df97cd356c069cb15456ff33858ede35\/archive\/b4fbbcd12797a8c40d325cf1d9612e8f58207490.zip\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"https:\/\/gist.github.com\/zk-1\/df97cd356c069cb15456ff33858ede35\/archive\/b4fbbcd12797a8c40d325cf1d9612e8f58207490.zip\">a download link<\/a> to the script from GitHub, or see the gist below. <br><br>Note: If you are migrating your old pronouns field to the new one, make sure the new field is enabled first in your admin.<\/p>\n\n\n\n<script src=\"https:\/\/gist.github.com\/zk-1\/df97cd356c069cb15456ff33858ede35.js\"><\/script>\n","protected":false},"excerpt":{"rendered":"<p>If you have occasion to copy\/migrate values from one profile field to another in Slack, here&#8217;s a script to do just that. Slack has had the same built-in profile fields for quite a while now, including Title, Phone, Real Name &amp; Display Name, but in&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":443,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[45,48,87],"tags":[],"class_list":["post-425","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cli","category-macos-it","category-slack"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/starshade.ca\/wordpress\/wp-json\/wp\/v2\/posts\/425","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/starshade.ca\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/starshade.ca\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/starshade.ca\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/starshade.ca\/wordpress\/wp-json\/wp\/v2\/comments?post=425"}],"version-history":[{"count":15,"href":"https:\/\/starshade.ca\/wordpress\/wp-json\/wp\/v2\/posts\/425\/revisions"}],"predecessor-version":[{"id":477,"href":"https:\/\/starshade.ca\/wordpress\/wp-json\/wp\/v2\/posts\/425\/revisions\/477"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/starshade.ca\/wordpress\/wp-json\/wp\/v2\/media\/443"}],"wp:attachment":[{"href":"https:\/\/starshade.ca\/wordpress\/wp-json\/wp\/v2\/media?parent=425"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/starshade.ca\/wordpress\/wp-json\/wp\/v2\/categories?post=425"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/starshade.ca\/wordpress\/wp-json\/wp\/v2\/tags?post=425"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}