{"id":4621,"date":"2026-01-28T09:40:25","date_gmt":"2026-01-28T08:40:25","guid":{"rendered":"https:\/\/lieben.nu\/liebensraum\/?p=4621"},"modified":"2026-01-28T14:57:49","modified_gmt":"2026-01-28T13:57:49","slug":"m365autolink","status":"publish","type":"post","link":"https:\/\/lieben.nu\/liebensraum\/2026\/01\/m365autolink\/","title":{"rendered":"M365AutoLink"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">We often still have legacy apps around. First advice is always; get rid of them \ud83d\ude42<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/lieben.nu\/liebensraum\/wp-content\/uploads\/2026\/01\/M365AutoLink.gif\"><img loading=\"lazy\" decoding=\"async\" width=\"1900\" height=\"769\" src=\"https:\/\/lieben.nu\/liebensraum\/wp-content\/uploads\/2026\/01\/M365AutoLink.gif\" alt=\"\" class=\"wp-image-4623\"\/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">But sometimes, that&#8217;s not the option the customer wants to pay for, so alternatives need to be researched. Commercial tools like IAMCloud Drive Mapper work really well in exposing Teams\/Sharepoint as driveletters on endpoints (for a price).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">But free solutions are limited to automapping using GPO&#8217;s or letting users sync each team they need access to manually. This often causes issues on multiple fronts that I&#8217;m sure you&#8217;ve already experienced if you&#8217;re reading this.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">So here&#8217;s an alternative to try! M365AutoLink is a PowerShell script you can execute on the user&#8217;s device. It&#8217;ll try to use SSO and then:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>check all sites the user has access to (including Teams)<\/li>\n\n\n\n<li>filter sites you do and don&#8217;t want<\/li>\n\n\n\n<li>create a folder in their onedrive if it doesn&#8217;t exist yet (you can decide how to name it)<\/li>\n\n\n\n<li>add all these sites as shortcuts in this folder<\/li>\n\n\n\n<li>remove any shortcuts the user no longer has access to<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">And since Onedrive <strong>syncs these links<\/strong>, any <strong>legacy apps<\/strong> on the user&#8217;s device can now also <strong>directly access Teams\/Sharepoint<\/strong>, without syncing down the entire library or using drive mappings!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Documentation and download<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/jflieben\/M365AutoLink\">https:\/\/github.com\/jflieben\/M365AutoLink<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>We often still have legacy apps around. First advice is always; get rid of them \ud83d\ude42 But sometimes, that&#8217;s not the option the customer wants to pay for, so alternatives need to be researched. Commercial tools like IAMCloud Drive Mapper work really well in exposing Teams\/Sharepoint as driveletters on endpoints (for a price). But free &hellip; <a href=\"https:\/\/lieben.nu\/liebensraum\/2026\/01\/m365autolink\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">M365AutoLink<\/span> <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":{"_crdt_document":"","footnotes":""},"categories":[65,27,34,39,44],"tags":[],"class_list":["post-4621","post","type-post","status-publish","format-standard","hentry","category-m365autolink","category-microsoft-teams","category-onedrive-for-business","category-powershell","category-sharepoint-online"],"_links":{"self":[{"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/posts\/4621","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/comments?post=4621"}],"version-history":[{"count":3,"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/posts\/4621\/revisions"}],"predecessor-version":[{"id":4626,"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/posts\/4621\/revisions\/4626"}],"wp:attachment":[{"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/media?parent=4621"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/categories?post=4621"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/tags?post=4621"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}