Blogger

  • This email address is being protected from spambots. You need JavaScript enabled to view it.

    Recent items

Login

Wednesday, 20 March 2013 16:15

How to resolve 'The current user has insufficient permissions to perform this operation' error when adding termstore through a TimerJob

Written by
Rate this item
(1 Vote)

Have you ever written a timer job in SharePoint to read from or writing to a term store in Managed Metadata, you might have done so and faced the error:
"The current user has insufficient permissions to perform this operation"
Even if you try to run the code with SPSecurity.RunWithElevatedPrivileges(), or with your own account from Visual Studio, it will still give you the same problem.
The thing is, that the timer job runs with its own service, which is “SharePoint 2010 Timer”, see the below image.

The user running this service has to have access to the term store administrators in Central Administration, see the image below:

 

Read 44404 times Last modified on Wednesday, 20 March 2013 16:22

4 comments

  • Comment Link size wedding Dresses Tuesday, 21 May 2013 20:07 posted by size wedding Dresses

    Hey very nice blog!

    Report
  • Comment Link Luca Costante Saturday, 25 May 2013 20:17 posted by Luca Costante

    Thanks :)

    Report
  • Comment Link AV Friday, 27 September 2013 16:34 posted by AV

    Thanks for this!

    Report
  • Comment Link Felix Sunday, 26 April 2015 13:17 posted by Felix

    Hi! I could have sworn I've visited this site before but after going through many of the
    articles I realized it's new to me. Regardless, I'm definitely pleased I found it and I'll be bookmarking it and checking back frequently!

    Report

Leave a comment

Make sure you enter all the required information, indicated by an asterisk (*). HTML code is not allowed.