0

Scenario:
Two domains and 2 ADFS servers - like separate companies.
SharePoint 2013 with 2 Trusted Identity Providers.
Central Administration is set to use Domain1 Identity Provider (NTLM).
SharePoint sites are set to use Domain2 Identity Provider.

Users can login without any issues from Domain2 to SharePoint sites and admins from Domain1 can perform all actions in Central Administration using UI. Works. Beautiful.

Problem starts when as an admin from Domain1 I try to run PS cmdlets against sites where Domain2 users are site collection admins.

If I try

Invoke-Command -ScriptBlock{$env:username} -Credential $cred -ComputerName localhost

as Domain2 user I will get AccessDenied because SharePoint Server itself belongs to Domain1 and the user doesn't have permissions to access it. As Domain1 admin it works, but later Get-SPUser will throw me AccessDenied.

I am allowed to assign whatever permissions deemed necessary without changing Authentication Providers. How can I run the cmdlets as Domain2 users?

2
  • 1
    PowerShell/SharePoint cmdlets aren't going to understand an ADFS token. As far as Get-SPUser for your domain1 admins, they need to have Full Control over the Web Application the user resides on.
    – user6024
    Commented Nov 23, 2017 at 18:32
  • Not what I asked, but still soved my probelm :) Could you please add it as an answer so that I could accept it?
    – grisha
    Commented Nov 24, 2017 at 14:41

1 Answer 1

1

PowerShell/SharePoint cmdlets aren't going to understand an ADFS token. As far as Get-SPUser for your domain1 admins, they need to have Full Control over the Web Application the user resides on.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.