Skip to content

Commit 77a1ec0

Browse files
authored
Merge pull request #125 from KelvinTegelaar/dev
[pull] dev from KelvinTegelaar:dev
2 parents 1cd706e + 3536fe4 commit 77a1ec0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Identity/Administration/Users/Invoke-EditUser.ps1

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ Function Invoke-EditUser {
3838
$BodyToship = [pscustomobject] @{
3939
'givenName' = $UserObj.givenName
4040
'surname' = $UserObj.surname
41-
'accountEnabled' = $true
4241
'displayName' = $UserObj.displayName
4342
'department' = $UserObj.Department
4443
'mailNickname' = $UserObj.Username ? $UserObj.username :$UserObj.mailNickname

Modules/CIPPCore/Public/New-CIPPOneDriveShortCut.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ function New-CIPPOneDriveShortCut {
1414
$SiteInfo = New-GraphGetRequest -uri 'https://graph.microsoft.com/beta/sites/' -tenantid $TenantFilter -asapp $true | Where-Object -Property weburl -EQ $url
1515
$ListItemUniqueId = (New-GraphGetRequest -uri "https://graph.microsoft.com/beta/sites/$($siteInfo.id)/drive?`$select=SharepointIds" -tenantid $TenantFilter -asapp $true).SharePointIds
1616
$body = [PSCustomObject]@{
17-
name = "$($SiteInfo.displayName)"
17+
#remove any item from the name that is not allowed in a file name
18+
name = $SiteInfo.displayName -replace '[^a-zA-Z0-9\.\-]', ''
1819
remoteItem = @{
1920
sharepointIds = @{
2021
listId = $($ListItemUniqueId.listid)

0 commit comments

Comments
 (0)