1

I need to assign a new user as farm administrator on a development machine. I added him to the domain admins AD group, and went to farm admins in central administration and gave added him there. He opens visual studio on that machine and tries to deployed an app, but he can't due to lack of permissions.. he got this error:

The local SharePoint server is not available. Check that the server is running and connected to the SharePoint farm

I figured that I need to give him access on sql as well, but is there a command in powershell that lets me add a farm admin and it does all of the work together? or do I need to do all these steps manually?

1
  • will it grant permissions on other services other than sql? Commented May 2, 2016 at 23:49

1 Answer 1

0

You can do it via using Powershell. Run the below command

Add-SPShellAdmin -UserName CONTOSO\User1

Read more about it here :https://technet.microsoft.com/en-us/library/ff607596.aspx

8
  • 1
    will it grant permissions on other services other than sql? Commented May 2, 2016 at 23:51
  • It grant all the required permission as an farm admin. But if you want give him complete control I think u should add him into local admin group on server Commented May 2, 2016 at 23:52
  • I will give it a try Commented May 2, 2016 at 23:55
  • I still have the issue of: Cannot connect to the SharePoint site: servername/sites/apps. Make sure that this is a valid URL and the SharePoint site is running on the local computer. If you moved this project to a new computer or if the URL of the SharePoint site has changed since you created the project, update the Site URL property of the project. Commented May 3, 2016 at 0:03
  • Can he access site in browser? Commented May 3, 2016 at 0:05

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.