Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6891373
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T06:24:06+00:00 2026-05-27T06:24:06+00:00

I am developing an application using sharepoint 2010 server side object model. Can anyone

  • 0

I am developing an application using sharepoint 2010 server side object model. Can anyone tell me how do I authenticate a user? what are the different possible methods that I can use use to achieve this? The question may be dumb as I am really new to sharepoint and I m stuck with it. I know how to do it using ASP.NET web services exposed by sharepoint.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T06:24:06+00:00Added an answer on May 27, 2026 at 6:24 am

    You need to create SPSite for given user and than all SharePoint objects created from such SPSite (i.e. SPWeb, lists of SPWeb,…) will be opened as that user.

    • You can create SPSite as “system” account using http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spsecurity.runwithelevatedprivileges.aspx
    • You can create SPSite as another user of that SPSite ( check constructors for SPSite – http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spsite_members.aspx ). This way you’ll impersonate users of given SPSite.
    • You can also do regular impersonation and than create SPSite (similar to “system” account).

    Please carefully review all code that does impersonation, especially as “system” account.

    Make sure to finish all operations with objects from impersonated SPSite before disposing the SPSite/SPWeb objects.

    EDIT: Client side OM/web services authentication

    SharePoint with regular Windows authentication – will use callers indentity. Note that if called from another server user’s identity will not flow to the SharePoint server, user must be signed in locally so credentials can be used on next server (to sign in locally on a server one needs to know user name + password in clear text). Kerberos authentication can be used to solve “NTML one hop” behavior, but it is rarely possible due to policies.

    I don’t know how to handle other authentication configurations, but you said you know how to deal with authenticatio using web services – there is no difference if you are using webservices (work wiht SharePoint 2007 and 2010) or client side OM (2010) http://msdn.microsoft.com/en-us/library/ee535231.aspx.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am not much familiar with developing application using cocoa on mac. Can some
I am developing an application using which users can update their twitter status. Then
I am developing an Application using vc++ and C# ,the application can Import and
I am developing a SharePoint application which needs users from a specified Windows Server
I`m developing an application using Spring WebFlow 2, Facelets and JSF. One of my
Currently developing an application using the newest version of symfony, obtained through PEAR. This
I am developing an application using MVC Preview 5. I have used typed views.
I am developing an application using Windows Mobile 5.0, under embedded VC++ 4.0, and
I am developing an application using WPF to dynamically render content, including text and
I'm developing an application using MS Visual C# 2008 Express that uses the ClickOnce

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.