Set permission to the published service application for a consuming farm:
You may encounter the following error "Unable to connect to the specified address. Verify the URL you entered and contact the service administrator for more details." in the consuming farm when you are trying to connect to the published service application by entering the published URL.
Error: "Unable to connect to the specified address. Verify the URL you entered and contact the service administrator for more details."
How to resolve this:
On the consumer farm, run the following command to get the id of the consumer farm:
(Get-SPFarm).Id
Copy the Id output from this command, and run the following command on the publisher farm:
$security = Get-SPTopologyServiceApplication | Get-SPServiceApplicationSecurity
$claimProvider = (Get-SPClaimProvider System).ClaimProvider
$principal = New-SPClaimsPrincipal -ClaimType "http://schemas.microsoft.com/sharepoint/2009/08/claims/farmid" -ClaimProvider $claimProvider -ClaimValue <farmid from previous command>
Grant-SPObjectSecurity -Identity $security -Principal $principal -Rights "Full Control"
Get-SPTopologyServiceApplication | Set-SPServiceApplicationSecurity -ObjectSecurity $security
(Get-SPFarm).Id
$consumingFarmID=<Farm GUID of the consuming farm> $security=Get-SPTopologyServiceApplication | Get-SPServiceApplicationSecurity $claimprovider=(Get-SPClaimProvider System).ClaimProvider $principal=New-SPClaimsPrincipal -ClaimType "http://schemas.microsoft.com/sharepoint/2009/08/claims/farmid" -ClaimProvider $claimprovider -ClaimValue $consumingFarmID Grant-SPObjectSecurity -Identity $security -Principal $principal -Rights "Full Control" Get-SPTopologyServiceApplication | Set-SPServiceApplicationSecurity -ObjectSecurity $security
No comments:
Post a Comment