Skip to main content
added 107 characters in body
Source Link
Ven
  • 1.1k
  • 2
  • 14
  • 28

I am developing a custom Windows Service. Within this Windows Service, I need to loop through all web applications. So I need to use SPFarm.Local from Administration namespace. My intent is to use least privileges. So, can anyone please tell me, which user should the Windows Service run under? If the Windows Service runs as Local System, it was failing when it was trying to access SPFarm. Please help.

Also, can a farm admin account access SPFarm.Local or only the setup / install account can access this?

I am developing a custom Windows Service. Within this Windows Service, I need to loop through all web applications. So I need to use SPFarm.Local from Administration namespace. My intent is to use least privileges. So, can anyone please tell me, which user should the Windows Service run under? If the Windows Service runs as Local System, it was failing when it was trying to access SPFarm. Please help.

I am developing a custom Windows Service. Within this Windows Service, I need to loop through all web applications. So I need to use SPFarm.Local from Administration namespace. My intent is to use least privileges. So, can anyone please tell me, which user should the Windows Service run under? If the Windows Service runs as Local System, it was failing when it was trying to access SPFarm. Please help.

Also, can a farm admin account access SPFarm.Local or only the setup / install account can access this?

Source Link
Ven
  • 1.1k
  • 2
  • 14
  • 28

Account Permissions for accessing SPFarm, SPWebApplication using Object Model

I am developing a custom Windows Service. Within this Windows Service, I need to loop through all web applications. So I need to use SPFarm.Local from Administration namespace. My intent is to use least privileges. So, can anyone please tell me, which user should the Windows Service run under? If the Windows Service runs as Local System, it was failing when it was trying to access SPFarm. Please help.