Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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

0
votes
1answer
36 views

Issues with Impersonation Step (SP2010 workflow) using SharePoint Online

I'm using Impersonation Step (in SP2010 workflow) to remove /replace permissions. But in some instance I get access denied error when I manually run the workflow and also when or when I set it to ...
1
vote
0answers
10 views

Sharepoint Impersonation Workflow Modified By Value in custom list

I have a custom workflow for submitting proposals. This was designed by my predecessor as a long single step. A user creates a proposal which is added to a custom list and the workflow begins. The ...
0
votes
1answer
22 views

changing a workflow step to impersonation step

A rather large workflow that is compromised of a single step fails for certain users since it does not run as an impersonation step. Is there a way to simply convert a step to an impersonation step? I'...
1
vote
1answer
153 views

Achieving impersonation within Spfx webparts

A user fills a form in a spfx webpart. Correspondingly I have to create an item in a list for this Metadata. What I would like to do is achieve this, but restrict the user from directly accessing/...
0
votes
1answer
196 views

How to remove previously added permissions with a SharePoint Designer workflow

I recently created a SharePoint library, and added a PeoplePicker field. I then went into SPD and created a 2010 workflow, and created: if PeoplePicker field not empty, use impersonate function to ...
0
votes
1answer
328 views

Issue with “Start a List Workflow” - Workflow Interop

I created a test workflow to test the App Step in 2013 WF and the Impersonation Step in 2010 WF. See below. 2013 Workflow using App Step: 2010 Workflow using Impersonation Step: I know what most of ...
2
votes
0answers
21 views

SharePoint 2013 - which library to use for impersonation

I am a .NET developer and a novice in the SharePoint classes available. The SharePoint site is 2013 with a potential upgrade in its future to either SharePoint 2016 or SharePoint online. I need my ...
0
votes
2answers
390 views

Impersonate in client Object mode to create List item in anothor web application

In CSOM I'm trying to Impersonate the user, So the Code will run under different user (system) account. On root site of Test web Application, I have Page which contains some input filed and Button. ...
1
vote
2answers
345 views

Error message “value does not fall within the expected range”

I got Error message “value does not fall within the expected range” in QA. It is working fine in DEV. I had increased threshold value from 12 to 20 in QA and working fine. but client does not approved ...
3
votes
1answer
41 views

clarification on Impersionation step in workflows

I recently faced some problems with workflows which performed pretty easy actions and I was forced to re-do them under impersonation step. In a situation where a list allows entries from all (all are ...
0
votes
1answer
86 views

Impersonation step and elevated account with password close to expiring

I have a workflow on SP 2010 with impersonation step. The account that created the workflow probably will have the password expired in the next few days. This will surely cause the workflow to stop ...
0
votes
0answers
39 views

sharepoint 2010 access page with impersonation

This may not be explicitly a sharepoint issue, but since it's being used to access a sharepoint page I thought I'd ask here. Trying to access a page in a sharepoint site (eventually a results page ...
0
votes
0answers
440 views

Person/Group Field Not Displaying All Values

I am trying to use a workflow (2013 with 2010 sub-workflows) to set a field in a document library. The field I am trying to set is to be a person/group field (set to multiple selections, person or ...
1
vote
1answer
259 views

Can a SharePoint 2010 workflow check out a document to a specific user?

Is it possible, within a SharePoint 2010 workflow, to check out the current item to a specific user?
0
votes
1answer
52 views

Cannot automatically start workflow for users outside of the active directory

I have a web part that is a form that links to a list that anyone who comes to the public site (i.e. people who are not in the active directory) can fill out. I have a workflow (created in SharePoint ...
0
votes
1answer
162 views

Elevated Privileges

I am writing a Webpart for an on-premise SharePoint 2013. I need to persist data to a list with elevated privileges but still need to be able to keep track who changed and added items. When I view ...
0
votes
1answer
348 views

Impersonation Step that's dependent on an IF condition

I'm writing a workflow for a dispatch process in a warehouse. The item goes through several stages before it can be closed, and at each stage, the item must be edited by different groups. I'm ...
0
votes
2answers
1k views

Sharing Files/Folders REST API

I'm currently using the REST API to upload files/folders and share the files with other users. Files/Folders are being uploaded to the following: https://tenant-my.sharepoint.com/personal/...
1
vote
1answer
1k 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
1answer
176 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
64 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
1answer
155 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
306 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
1k 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 ...
1
vote
2answers
7k 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 ...
1
vote
1answer
3k 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
924 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
1answer
280 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
289 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 ...
7
votes
2answers
5k 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
914 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 ...
2
votes
1answer
3k 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 ...
4
votes
0answers
181 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 ...
4
votes
3answers
5k 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 2010-...
4
votes
2answers
4k 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
242 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
8k 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
1k 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
3k 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 System....
-2
votes
2answers
1k 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
944 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 ...
2
votes
0answers
1k 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
891 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
2k 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 ...
4
votes
2answers
4k 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 ...
19
votes
4answers
14k 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 LogonUser(...
0
votes
2answers
344 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
219 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
1k 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
223 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 ...