From 708ef23ac510764cee8facc31f414f99d453b675 Mon Sep 17 00:00:00 2001 From: Georgi Matev Date: Thu, 25 May 2023 17:58:14 -0700 Subject: [PATCH] Reverting hack since the new incarnation of user is back to proper URL (#3514) Reverting hack since the new incarnation of user is back to proper URL --- #### Does this PR need a docs update or release note? - [ ] :white_check_mark: Yes, it's included - [ ] :clock1: Yes, but in a later PR - [ ] :no_entry: No #### Type of change - [ ] :sunflower: Feature - [x] :bug: Bugfix - [ ] :world_map: Documentation - [ ] :robot: Supportability/Tests - [x] :computer: CI/Deployment - [ ] :broom: Tech Debt/Cleanup #### Issue(s) * # #### Test Plan - [ ] :muscle: Manual - [ ] :zap: Unit test - [ ] :green_heart: E2E --- src/cmd/purge/scripts/onedrivePurge.ps1 | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/cmd/purge/scripts/onedrivePurge.ps1 b/src/cmd/purge/scripts/onedrivePurge.ps1 index ae1acf328..7372245aa 100644 --- a/src/cmd/purge/scripts/onedrivePurge.ps1 +++ b/src/cmd/purge/scripts/onedrivePurge.ps1 @@ -132,11 +132,6 @@ if (![string]::IsNullOrEmpty($User)) { $domain = $User.Split('@')[1].Split('.')[0] $userNameEscaped = $User.Replace('.', '_').Replace('@', '_') - # hacky special case because of recreated CI user - if ($userNameEscaped -ilike "lynner*") { - $userNameEscaped += '1' - } - $siteUrl = "https://$domain-my.sharepoint.com/personal/$userNameEscaped/" if ($LibraryNameList.count -eq 0) {