powershell icon indicating copy to clipboard operation
powershell copied to clipboard

Set-PnPTenant -AnyoneLinkTrackUsers $True not working

Open gschultz125 opened this issue 5 months ago • 2 comments

The following does not work for Set-PnPTenant with the latest version installed.

Set-PnPTenant -AnyoneLinkTrackUsers $True

Expected behavior

Expect the parameter AnyoneLinkTrackUsers to be True

Actual behavior

AnyoneLinkTrackUsers is still false

Steps to reproduce behavior

Please include complete script or code samples in-line or linked from gists

What is the version of the Cmdlet module you are running?

Manifest 3.1.0 PnP.PowerShell Core

Which operating system/environment are you running PnP PowerShell on?

  • [ ] Windows

gschultz125 avatar Sep 15 '25 14:09 gschultz125

Have tested this within the other SharePoint management shell ; Set-SPOTenant -AnyoneLinkTrackUsers $true

And - does NOT set to $true either.

Perhaps this is related to "SharingCapability" - eg. need to set this to 'ExternalUserAndGuestSharing' Set-PnPtenant -SharingCapability ExternalUserAndGuestSharing

I'm wondering if Microsoft have deprecated this feature / setting (?)

kachihro avatar Sep 24 '25 07:09 kachihro

I have same behaviour as @kachihro . @gschultz125 , did you raise an issue with Microsoft to understand the alternatives if AnyoneLinkTrackUsers does not work?

reshmee011 avatar Nov 29 '25 19:11 reshmee011