Tell me more ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have a webpart(sandboxed) that save a query result in a personal view. I encountered an Access Denied error at the following line when an user have "ManagePersonalViews" but NOT "AddListItems" permission to a list.

var oView = oViewCollection.Add(strViewName, vFields, qry.Query, 100, true, false, Microsoft.SharePoint.SPViewCollection.SPViewType.Html, true);

Since the user can create personal view via UI, the API must be allowing it? Can anyone help me which API is used to create personal view? Thanks

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.