locked
What are the limitations available in sharepoint client object model? RRS feed

  • Question

  • Hi,

       What are the limitations available in sharepoint client object model?


    Balaji

    Friday, May 18, 2012 8:58 AM

Answers

  • Hi balaji_rcs,

    One of the major limitation of SharePoint 2010 Client object model is that that it does not support SPSecurity.RunWithElevatedPrivileges. 

    Since you're code runs on the client, the identity can not be reverted to the application pool account. Running code as system account via the client object model would open a security hole and then everybody could write and execute code as an administrator.

    PS : SharePoint 2010 Client Object Model does not support RunWithElevatedPrivileges.

    Hope this helps!

    Regards,
    Devang Bhavsar
    Friday, May 18, 2012 10:12 AM

All replies

  • Hi Balaji,

    COM limitations :-

    • Does not provide any object scoped higher than SPSite.
    • Various administraion related objects are missing from COM

    Hope it helps!


    Ashish Mishra

    Friday, May 18, 2012 9:44 AM
  • Hi balaji_rcs,

    One of the major limitation of SharePoint 2010 Client object model is that that it does not support SPSecurity.RunWithElevatedPrivileges. 

    Since you're code runs on the client, the identity can not be reverted to the application pool account. Running code as system account via the client object model would open a security hole and then everybody could write and execute code as an administrator.

    PS : SharePoint 2010 Client Object Model does not support RunWithElevatedPrivileges.

    Hope this helps!

    Regards,
    Devang Bhavsar
    Friday, May 18, 2012 10:12 AM