File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Entrypoints/HTTP Functions/Identity/Administration/Users Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments