Handle special case OD site name after recreating user (#3361)
Special case Primary CI user LynneR for OneDrive CI cleanup <!-- PR description--> --- #### Does this PR need a docs update or release note? - [ ] ✅ Yes, it's included - [ ] 🕐 Yes, but in a later PR - [ ] ⛔ No #### Type of change <!--- Please check the type of change your PR introduces: ---> - [ ] 🌻 Feature - [x] 🐛 Bugfix - [ ] 🗺️ Documentation - [ ] 🤖 Supportability/Tests - [ ] 💻 CI/Deployment - [ ] 🧹 Tech Debt/Cleanup #### Issue(s) <!-- Can reference multiple issues. Use one of the following "magic words" - "closes, fixes" to auto-close the Github issue. --> * #<issue> #### Test Plan <!-- How will this be tested prior to merging.--> - [x] 💪 Manual - [ ] ⚡ Unit test - [ ] 💚 E2E
This commit is contained in:
parent
1dcdd28a90
commit
3b1a71902b
@ -131,6 +131,12 @@ if (![string]::IsNullOrEmpty($User)) {
|
|||||||
# Works for dev domains where format is <user name>@<domain>.onmicrosoft.com
|
# Works for dev domains where format is <user name>@<domain>.onmicrosoft.com
|
||||||
$domain = $User.Split('@')[1].Split('.')[0]
|
$domain = $User.Split('@')[1].Split('.')[0]
|
||||||
$userNameEscaped = $User.Replace('.', '_').Replace('@', '_')
|
$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/"
|
$siteUrl = "https://$domain-my.sharepoint.com/personal/$userNameEscaped/"
|
||||||
|
|
||||||
if ($LibraryNameList.count -eq 0) {
|
if ($LibraryNameList.count -eq 0) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user