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 Answer 1

1

Feature activation from UI uses the current user context.

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

2
  • 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
    Commented Nov 19, 2014 at 11:20
  • @Greg Yes in Powershell also it uses the context of the application. I will look around for documentation. Commented Nov 19, 2014 at 11:24

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.