A method of assuming the roles and privileges of a different account.

learn more… | top users | synonyms

1
vote
1answer
21 views

Get all Personal Views from a SharePoint List

I understand that I can impersonate a user with a user's token to get their personal view, but is there a less brute way of getting personal views? Is there an account I'm over-looking that has ...
0
votes
0answers
40 views

Adding Sharepoint functionality to our product (Asp.net)

We are trying to develop new functionality to add a plugin to our website (asp.net). Our product is used by different companies and the plugin would allow the administrators to set their own ...
0
votes
1answer
60 views

Items being checked out to me, the sharepoint developer

Hello again and thanks for taking the time to look at my issue. I've got a site that I've just taken ownership of and I'm tracking a major workflow bug that is disrupting my users' ability to work. ...
0
votes
1answer
38 views

Sharepoint 2010 impersonantion of Global Navigation, webparts and quick launch

In sharepoint 2010, is it possible to impersonante the Global Navigation, Quick Launch and webparts for a certain user? The requirenment that i have is to log in with a user and then this user can ...
1
vote
0answers
19 views

Due to some exceptions with code we added HostingEnvironment.Impersonate(). Is it safe and good practice?

We are trying to access the active directory services using C# on SharePoint webpart. There was COM exception when executing: SearchResultCollection resultCol = search.FindAll(); I got the solution ...
1
vote
0answers
49 views

WCF service throws an error after application pool recycling until loading any page

I've a WCF service that uses MultipleBaseAddressBasicHttpBindingServiceHostFactory to create service instances. I noticed a strange behavior - if I recycle the application pool (or it is recycled ...
0
votes
0answers
130 views

impersonation step in sharepoint designer workflow

I have created impersanotion step in SPD workflow in which created by has read access. Now created by user can view only their own item. I want to set it so that user can see all items whether it is ...
0
votes
2answers
220 views

operation is not valid due to the current state of the object. (for extranet)

I am using following code to impersonate a user on an extranet which uses Form Based Authentication, however when it comes to this line (SPSite s = new SPSite(siteStr, userToken);) it throws ...
0
votes
1answer
344 views

Set choice field values in initiation form using workflow variables SPD2010?

I am creating a SPD 2010 workflow which will be manually started and collect a value from the user. The value in question needs to use a choice field during initiation form. These value to allow the ...
3
votes
1answer
182 views

C# - Why impersonation is expired while ClientContext.ExecuteQuery() is performed

What I’m trying to do is to connect to SharePoint list by other credentials (impersonation) and print its items. I’m using this code for the impersonation, and it works almost perfectly, until ...
0
votes
0answers
127 views

SharePoint 2010 WCF Service Windows impersonation

I have hosted a Custom WCF service under ISAPI in SharePoint 2010. I have written one method which will upload document into SharePoint 2010. I have enabled Anonymous access on that web service ...
0
votes
1answer
142 views

Global Impersonation in SharePoint 2010

I have a SharePoint site with anonymous access allowed. I have a feature, that needs to access Shared Documents (both read and write) and hence when accessed it asks for login. I want to implement ...
1
vote
1answer
152 views

Impersonating Users in SharePoint 2010

We are about to start training our users. We will do so via group webinars. There are several types of users (Attorneys, Secretaries, other admin, etc.) all of whom have different views. Some have ...
6
votes
2answers
2k views

ValidateFormDigest - when exactly does it need to be called?

Can someone explain to me exactly when and why I need to call SPUtility.ValidateFormDigest? Contrary to the spec, which says you need to call it before elevating privileges, I've had the following ...
0
votes
2answers
346 views

Password required? The remote server returned an error: (401) Unauthorized

I'm trying reference a sharepoint list item in my aspx page using the Sharepoint Client Object Model. I have been granted 'Full Control' privileges on this list. The problem is that I can only ...
1
vote
1answer
522 views

Service accounts for database connection

We have a SharePoint web application with multiple site collections under that. We have built a new site which will be hosted under the same web application but in a new site collection. It has some ...
2
votes
0answers
103 views

Impersonation as Site Owner, workflow is cancelled when setting

Good day. We have a simple list workflow that uses Impersonation to give Contribute Rights to a user via Replace Contribute Item. The workflow is created by our site Collection Admin. So when i ran ...
2
votes
3answers
2k views

Impersonation in a net.tcp WCF-service in a claims based/Kerberos solution

I have tried to keep this as short as possible, dont hesitate if you want more details. Im trying to get impersonation (of calling user) to work over a net.tcp WCF-Service in a Sharepoint ...
2
votes
2answers
2k views

accessing database through sharepoint using a service account (windows account)

I am having an issue with connecting to the database for KHouse through sharepoint. I have run through several workarounds to get it to work, but to no avail. We are using several pages that retrieve ...
1
vote
0answers
124 views

Impersonation Step and the modified by on a created item

I am using the default content approval process on a list in sharepoint foundation however I want it to only apply to editing existing items. So basically when a new item is created in the list I do ...
0
votes
2answers
3k views

SharePoint Designer Workflow “canceled” by system account when using impersonation

In our farm we have the following issue: Created a workflow with a few easy steps. The first step is a "assign a variable" step, all following steps are within an impersonation step. That workflow ...
1
vote
2answers
337 views

How to Impersonate with Claim Based application - Search Issue

I'm facing a problem with Search Server Express and Impersonation. I have an application which impersonate with user token and then launch a query by a KeywordQuery. Suppose I have to impersonate the ...
2
votes
1answer
724 views

Get Error 401 when trying to download a document from a library programatically

I'm trying to download a document with this code : using (Impersonator impersonator = new Impersonator()) { siteURL += "?NoRedirect=true"; System.Net.WebClient _WebClient = new ...
-2
votes
2answers
879 views

Ensure User from multiple domain for user that has never access to sharepoint

This is my situation. I have a farm in which an instance of Sharepoint Foundation is installed.. Windows Server is configure to accept users from 3 trusted domain (xxx, yyy and zzz) Suppose i have ...
0
votes
1answer
604 views

Get single user from multiple domain problem

This is my situation. I have a farm in which an instance of Sharepoint Foundation is installed.. Windows Server is configure to accept users from 3 trusted domain (xxx, yyy and zzz) Suppose i have ...
1
vote
0answers
644 views

Custom SPClaimProvider with Context Impersonation throwing exception

I have written a custom SPClaimProvider for my SharePoint 2010 site. It seemed to be working for couple of days and it started throwing exception whenever I elevate the privileges or user Context ...
0
votes
1answer
727 views

Unauthorized problem with impersonating an user

I'm trying to get this result: i want me to impersonate an user X, write down a file in a List (in which X has contribute rights), and change the privileges so that noone else can modify that.. So i ...
1
vote
1answer
999 views

How to impersonate specific user in sharepoint foundation by code

I'm trying to impersonate another user by code.. I know in Sharepoint Enterprise there's a method which uses the UserProfileManager to impersonate... I wrote down this "trace code" without know if it ...
3
votes
2answers
2k views

Unable to create site collection programmatically

This problem is somewhat related to this Creating a Site collection programmatically throws exception 0x80070005 question. I cannot create site collections programmatically in Claims-based ...
10
votes
3answers
3k views

Best way to Impersonate in SharePoint

So far, I am aware of below 3 ways of performing impersonation in a SharePoint web part or page : Using Win32 API [DllImport("advapi32.dll", SetLastError=true)] public static extern bool ...
0
votes
2answers
184 views

401.2 Unauthorized error when trying to access SharedServices for calling PSI extensions using impersonation

I am working on a VS2010 machine to develop web parts for a MOSS 2007 server that has MS Project Server installed on it. I am trying to get a sample Impersonation application running on it. I am ...
0
votes
1answer
166 views

Creating a web part to manipulate List Data bypassing List and ListItem security

I have a Tasks List and I need to create a Web Part to display one view of that list (with a functionality similar to a List View Web Part: item viewing, editing, sorting, filtering, etc). However, ...
1
vote
1answer
544 views

Unable to delete group without being site collection administrator

I have a Sharepoint Group (SPGroup1) whose owner is User1. User1 has full control over the root web site (and all its sub-sites), however it is not a site collection administrator. When I log in as ...
1
vote
1answer
134 views

Can I give a Super User the ability to impersonate someone else?

We currently have a situation where we need the ability to fully impersonate a login on a SharePoint Web Application. Effectively any "SuperUser" needs the ability to, without a password, proxy login ...
1
vote
1answer
551 views

Impersonation issue? - SharePoint 2010

I have some strange behaviour happening in SharePoint 2010, which I believe is something to with Impersonation but I'm not entirely sure. I'm not sure how to word this, so I'll do it like this: ...
1
vote
2answers
3k views

Impersonation Step in SharePoint Designer 2010

I have following questions on Impersonation Step: How to use Impersonation Step in a workflow to grant/Revoke permissions based on conditions? What are the pitfalls of using impersonation step? How ...
5
votes
1answer
430 views

Custom Web Service not cannot find User

I have created a Custom Web Service for my .NET application that performs various functions against a Sharepoint 2010 site. I use a standard function to run each function as an impersonated user (so ...
4
votes
2answers
4k views

Access Denied while setting Metadata Store Permission

Breaking my head with this issue for the past 2 days! Received Access Denied error in SPD so tried to set Meta Data permission and get the following error. I am one of the Admins for BSC service ...
0
votes
1answer
889 views

Custom database access with impersonation in Sharepoint 2010

I'm building a custom application on Sharepoint 2010 that runs in an IIS virtual directory under a Sharepoint site (so it has access to SPContext and such which I need). My application (Asp.net MVC by ...
2
votes
3answers
1k views

ItemAdding event and impersonation

I need to modifiy the Editor/Author (modified by/created by) SharePoint built-in fields in an ItemAdding Event Receiver on a list (I cannot use the ItemAdded event). For users with restricted ...
1
vote
1answer
2k views

Preview or View Site As Any User

Is it possible to preview a whole Sharepoint 2010 site as a specific user? I am thinking from a support perspective where a user phones up and asks "why cant I see x" or "where do i go to find y". It ...
0
votes
3answers
147 views

Custom DB Access Issue

We have an issue in accessing custom a DB from a SharePoint custom webpart. When we try to access the custom DB from SharePoint webpart we are getting the error "Login Failed for User ...