0

Which user context is used in feature activation receiver?

Is it current user (when activating from WebUI)?

I have to call a service in feature activation receiver and I have to know which user should have access to the server.

1

Feature activation from UI uses the current user context.

You can use elevated code if you want normal users to gain more privileges.

  • Thanks for your answer. The same when I use powershell (does it use powershell current user)? Actually I thought so but I can't find any Microsoft official statement, do you know where can I find it? – Greg Nov 19 '14 at 11:20
  • @Greg Yes in Powershell also it uses the context of the application. I will look around for documentation. – Amal Hashim Nov 19 '14 at 11:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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