Share via

External User Management PowerShell script not working

Anonymous
2016-04-08T10:49:01+00:00

I am the SP Admin but I am new to PowerShell. What am I doing wrong? I used the MS page

https://technet.microsoft.com/library/fp161390

To get:

PS C:\windows\System32> Set-SPOSite -Identity https://[ourtenantname].sharepoint.com/teams/pilots/project -RequireAcceptingAccountMatchInvitedAccount

But it gets this error:

Set-SPOSite : Parameter set cannot be resolved using the specified named

parameters.

At line:1 char:1

  • Set-SPOSite -Identity

https://[ourtentantname].sharepoint.com/teams/pilots/project -R ...

  • 
    

    + CategoryInfo          : InvalidArgument: (:) [Set-SPOSite], ParameterBin  

   dingException  

    + FullyQualifiedErrorId : AmbiguousParameterSet,Microsoft.Online.SharePoin  

   t.PowerShell.SetSite
Microsoft 365 and Office
Microsoft 365 and Office

A comprehensive suite of productivity tools and cloud services that enhance collaboration, communication, and efficiency. Combining classic Office apps with advanced Microsoft 365 features, it supports both personal and business needs

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2016-04-08T21:10:12+00:00

Hi Lisa,

This parameter RequireAcceptingAccountMatchInvitedAccount should be used with Set-SPOTenant cmdlet. You can use the command provided by Vasil.

If it is still not recognized, please install the latest SharePoint Online Management Shell and check the outcome.

For your convenience:

https://www.microsoft.com/en-gb/download/details.aspx?id=35588

Regards,

Ryan

Was this answer helpful?

0 comments No comments

Answer accepted by question author

Anonymous
2016-04-08T13:51:33+00:00

That parameter can only be set on the tenant level. Use this instead:

Set-SPOTenant -RequireAcceptingAccountMatchInvitedAccount $true

Was this answer helpful?

0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Anonymous
    2016-04-12T07:30:43+00:00

    I'm sorry. I thought I'd deleted this minutes after I'd posted it. I figured out my error. What you said: Set-SPOTenant not Set-SPOSite.  Plus, I left the "$true" off at the end. Devil's in the details...

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2016-04-12T04:41:04+00:00

    Hi Lisa,

    If you need further assistance on the issue, please let us know.

    Regards,

    Ryan

    Was this answer helpful?

    0 comments No comments