Forum Discussion

Enoll's avatar
Enoll
Copper Contributor
Jul 20, 2021

Set-SPOSite Conditional Access Error (AuthContextStrength)

Hello,

 

We have set AllowLimitedAccess for quite some time to our sites with the same command:

 

Set-SPOSite -Identity IdentityHere -ConditionalAccess AllowLimitedAccess 

 

Until today, when it suddenly threw an error : Set-SPOSite : Field or property "AuthContextStrength" does not exist.

 

Tried on couple of other test tenants but still the same issue. The problem is also not for a specific site but for all sites.

 

Any suggestions would be much appreciated

 

 

  • Looks like you can pass a Site object to Set-SPOTenant like this
    get-sposite https://domain.tld/site/ | set-spotenant -ConditionalAccessPolicy AllowLimitedAccess
    Tested it and successfully changed the ConditionalAccessPolicy for that site. (Not the Tenant)
  • Set-SPOSite : Field or property "AuthContextStrength" does not exist.
    At line:1 char:1

    "SAME ERROR"...
  • Osh_A415's avatar
    Osh_A415
    Copper Contributor
    Set-SPOSite : Field or property "AuthContextStrength" does not exist.
    At line:1 char:1

    "SAME ERROR"...
      • dcober's avatar
        dcober
        Brass Contributor
        Any updates on this? I haven't seen any updates to the SharePoint Online PowerShell module, only the PnP module.
  • nygarm1's avatar
    nygarm1
    Copper Contributor

    Same here:

    Get-PnPTenantSite : The property or field 'AuthContextStrength' has not been initialized. It has not been requested or the request has not been executed. It may need to be explicitly
    requested. 

  • IM's avatar
    IM
    Copper Contributor

    Enoll 

    Hi,

    I have the same problems with PnP.PowerShell (Powershell Core) since today (yesterday everything worked).




    PS: The old (deprecated) SharePointPnPPowerShellOnline module works.

     

Resources