{"id":4644,"date":"2026-02-27T09:24:24","date_gmt":"2026-02-27T08:24:24","guid":{"rendered":"https:\/\/lieben.nu\/liebensraum\/?p=4644"},"modified":"2026-02-27T09:30:52","modified_gmt":"2026-02-27T08:30:52","slug":"m365autolink-unattended","status":"publish","type":"post","link":"https:\/\/lieben.nu\/liebensraum\/2026\/02\/m365autolink-unattended\/","title":{"rendered":"M365AutoLink unattended"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"699\" height=\"242\" src=\"https:\/\/lieben.nu\/liebensraum\/wp-content\/uploads\/2026\/02\/image-4.png\" alt=\"\" class=\"wp-image-4646\" srcset=\"https:\/\/lieben.nu\/liebensraum\/wp-content\/uploads\/2026\/02\/image-4.png 699w, https:\/\/lieben.nu\/liebensraum\/wp-content\/uploads\/2026\/02\/image-4-300x104.png 300w\" sizes=\"auto, (max-width: 699px) 100vw, 699px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Doing logon scripts is easy for some, less easy for others, and in general not great in certain types of environments.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">And this led to some questions if I could also make a version of M365AutoLink that can run centrally. There was a hurdle to overcome: how do we know what libraries a user has access to?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/www.m365permissions.com\">M365Permissions<\/a> already has the answer, so a quick copy paste from the code there and voila, we now have a centrally runnable version of M365AutoLink!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It can run either as managed identity, or cert-based service principal. I recommend running it as a runbook, and don&#8217;t run it on tenants with thousands of users or commercially&#8230;.for commercial use<a href=\"https:\/\/lieben.nu\/liebensraum\/commercial-use\/\" data-type=\"page\" data-id=\"3714\"> click here<\/a> \ud83d\ude42<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For full documentation and code: <a href=\"https:\/\/github.com\/jflieben\/M365AutoLink\">https:\/\/github.com\/jflieben\/M365AutoLink<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Doing logon scripts is easy for some, less easy for others, and in general not great in certain types of environments. And this led to some questions if I could also make a version of M365AutoLink that can run centrally. There was a hurdle to overcome: how do we know what libraries a user has &hellip; <a href=\"https:\/\/lieben.nu\/liebensraum\/2026\/02\/m365autolink-unattended\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">M365AutoLink unattended<\/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":[4,6,65,34,39,44],"tags":[],"class_list":["post-4644","post","type-post","status-publish","format-standard","hentry","category-automation","category-windows-virtual-desktop","category-m365autolink","category-onedrive-for-business","category-powershell","category-sharepoint-online"],"_links":{"self":[{"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/posts\/4644","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=4644"}],"version-history":[{"count":2,"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/posts\/4644\/revisions"}],"predecessor-version":[{"id":4647,"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/posts\/4644\/revisions\/4647"}],"wp:attachment":[{"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/media?parent=4644"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/categories?post=4644"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/tags?post=4644"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}