Repository navigation
Set-SPOSite/Set-SPOTenant: add per-site HideSyncButtonOnTeamSite, HideAddShortcutsToOneDrive and AllowOverrideHideSyncButton - #1238
Conversation
…hortcutsToOneDrive Adds two new site-level parameters to Set-SPOSite: - `HideSyncButtonOnTeamSite`: hides the Sync button in the document libraries of a single site. - `DisableAddShortcutsToOneDrive`: hides the "Add shortcut to My files" option in the document libraries of a single site. Both are site-scoped counterparts of the existing Set-SPOTenant parameters of the same names, so admins can roll the behavior out site by site. They aren't supported on OneDrive sites. Changes: - Added both parameters to the ParamSet1 syntax block. - Added parameter sections (alphabetical order). - Added Example 27. Engineering PR: https://onedrive.visualstudio.com/SharePoint%20Online/_git/SPO.Core/pullrequest/2365994
PoliCheck Scan ReportThe following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans. ✅ No issues foundMore information about PoliCheckInformation: PoliCheck | Severity Guidance | Term |
|
Learn Build status updates of commit b51d30f: ✅ Validation status: passed
For more details, please refer to the build report. |
|
Thanks for documenting the site-scoped controls and showing how to read the resulting values. A few release/supportability details would make this safer for administrators:
The build and policy checks pass; these questions are about runtime availability and exact product behavior rather than rendering. |
… design - Set-SPOSite: rename -DisableAddShortcutsToOneDrive to -HideAddShortcutsToOneDrive (UI only; also allowed on OneDrive sites). - Set-SPOSite: -HideSyncButtonOnTeamSite is applied only when Set-SPOTenant -AllowOverrideHideSyncButton is $true; $null returns the site to the organization setting; document EffectiveHideSyncButtonOnTeamSite / EffectiveHideAddShortcutsToOneDrive. - Set-SPOSite: update Example 27. - Set-SPOTenant: add -AllowOverrideHideSyncButton. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 3137df6e-7ef7-4576-be23-b36c6c4c897d
|
Thanks for the review! Updates in the latest commit:
|
PoliCheck Scan ReportThe following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans. ✅ No issues foundMore information about PoliCheckInformation: PoliCheck | Severity Guidance | Term |
|
Learn Build status updates of commit 3dd9354: ✅ Validation status: passed
For more details, please refer to the build report. |
|
Dinesh Hariharan (@dineshariharan) sachin-lalwani Before this PR can be merged, a Content Lead needs to add the Sign off label to it. Only one of the listed reviewers needs to add the Sign off label. Before you sign off a PR, confirm the following:
After you've confirmed the above, do the following to sign off:
After you've signed off, our operations (PubOps) team will review the PR for issues that may impact formatting and the customer experience. If any changes are needed, they will return When the PR passes PubOps review, they'll merge the PR. If the PR is merged into the main branch, changes will go live within the next couple hours. If you think you were incorrectly added as a reviewer, have questions about this process, or need help signing off on this PR, post a message to https://aka.ms/tcphelp. |

Documents the per-site controls for the Sync and "Add shortcut to My files" buttons.
Set-SPOSite
HideSyncButtonOnTeamSite: hides or shows the Sync button in the document libraries of a single SharePoint site (not OneDrive). Applied only whenSet-SPOTenant -AllowOverrideHideSyncButtonis$true;$nullreturns the site to the organization-level setting.HideAddShortcutsToOneDrive: hides the "Add shortcut to My files" option in the document libraries of a single SharePoint or OneDrive site (UI only). The tenant-levelDisableAddShortcutsToOneDrivestill turns the feature off for the whole organization.Set-SPOTenant
AllowOverrideHideSyncButton(default$false): allows site-levelHideSyncButtonOnTeamSitevalues to override the organization-level setting. Added to the syntax blocks and a parameter section.Engineering PR: https://onedrive.visualstudio.com/SharePoint%20Online/_git/SPO.Core/pullrequest/2365994