Skip to main content

Questions tagged [impersonation]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
10 views

How to call an API from SharePoint (Subscription Edition) event receiver with impersonation?

I am very new to SharePoint development. I am trying call an API from ItemUpdating event as follows: public override void ItemUpdating(SPItemEventProperties properties) { ...
Raviraj Bhalerao's user avatar
0 votes
2 answers
271 views

Is it possible to send a comment to the comment section of a SharePoint site on behalf of another user?

Is it possible to send a comment to the comment section of a SharePoint site on behave of another user. I made a SharePoint Communication site at work and I wanted my co-workers to sent comments in ...
user1903995's user avatar
0 votes
1 answer
235 views

Alternative for SharePoint 2010 Workflow Impersonation Step

In our SharePoint Online site, I have a Form Library with an InfoPath form behind it, as well as a SharePoint 2010 workflow. The only reason I used the SP 2010 workflow platform was for the ...
Callie's user avatar
  • 1
1 vote
2 answers
139 views

SharePoint Approval Workflow Fails when adding Impersonation Step

I have created an Approval Workflow (SharePoint 2010 Workflow) that submits an email to a manager to request approval. Works perfectly. I don't want the user to be able to edit the list item after it ...
Rob's user avatar
  • 13
1 vote
1 answer
73 views

SharePoint 2010 item permissions workflow - getting user from look-up list

On SharePoint Online I have a 2010 workflow with an Impersonation Step to Replace permissions of the current item so only the person who created it and also the Administrator for the corresponding ...
Albini's cat's user avatar
0 votes
3 answers
258 views

sp2016 using impersonation step permissions settings on items with only creator set to see and modify items NOT WORKING

I have a list which is set so only the creator of the item can see and edit their own items (so that others cannot see personal information collected). I have created a SP2010 based workflow in SP ...
Brightspark's user avatar
1 vote
1 answer
1k 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 ...
naijacoder's user avatar
  • 4,272
1 vote
0 answers
77 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 ...
Tomasz.Masionis's user avatar
0 votes
1 answer
58 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'...
Tomasz.Masionis's user avatar
1 vote
1 answer
1k 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/...
mohd tahir's user avatar
  • 2,406
0 votes
1 answer
700 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 ...
Steve Morley's user avatar
0 votes
1 answer
809 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 ...
cbbrown's user avatar
  • 787
2 votes
1 answer
40 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 ...
Lisa Mendez's user avatar
1 vote
2 answers
2k 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. ...
Akshay Dattatray Nangare's user avatar
1 vote
2 answers
1k 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 ...
Brishal's user avatar
  • 1,205
3 votes
1 answer
80 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 ...
susan's user avatar
  • 2,668
0 votes
1 answer
163 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 ...
susan's user avatar
  • 2,668
0 votes
0 answers
51 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 ...
VBartilucci's user avatar
1 vote
1 answer
365 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?
stiankd's user avatar
  • 15
0 votes
1 answer
91 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 ...
zero's user avatar
  • 101
0 votes
1 answer
171 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 ...
AdelPoint's user avatar
  • 395
0 votes
1 answer
540 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 ...
James Fraser's user avatar
0 votes
2 answers
2k 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/...
Webfort's user avatar
  • 965
1 vote
1 answer
2k 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 "...
ferr's user avatar
  • 213
0 votes
1 answer
184 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. ...
Miguet Schwab's user avatar
0 votes
1 answer
69 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 ...
user2988853's user avatar
1 vote
1 answer
580 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 ...
variable's user avatar
  • 4,473
1 vote
0 answers
464 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 ...
nativehr's user avatar
  • 113
0 votes
0 answers
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 ...
Brishal's user avatar
  • 1,205
2 votes
2 answers
11k 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 ...
Medes's user avatar
  • 2,086
1 vote
1 answer
4k 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 ...
Realistic's user avatar
  • 380
3 votes
1 answer
1k 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 ...
elady's user avatar
  • 153
0 votes
1 answer
289 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 ...
Zaheer's user avatar
  • 1
1 vote
1 answer
328 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 ...
Patrick DiDomenico's user avatar
7 votes
2 answers
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 ...
Rawling's user avatar
  • 880
0 votes
2 answers
1k 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 ...
Rex NFX's user avatar
  • 113
2 votes
1 answer
5k 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 ...
Mahesh's user avatar
  • 23
4 votes
0 answers
185 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 ...
user13328's user avatar
4 votes
3 answers
6k 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-...
Cowborg's user avatar
  • 1,037
4 votes
2 answers
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 ...
KbWorks's user avatar
  • 81
1 vote
0 answers
278 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 ...
Tim's user avatar
  • 11
0 votes
2 answers
9k 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 ...
marco's user avatar
  • 871
1 vote
2 answers
2k 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 ...
Ziba Leah's user avatar
  • 1,987
2 votes
1 answer
4k 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....
Thoma Bigueres's user avatar
-2 votes
2 answers
2k 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 ...
Ziba Leah's user avatar
  • 1,987
0 votes
1 answer
1k 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 ...
Ziba Leah's user avatar
  • 1,987
3 votes
0 answers
2k 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 ...
Senthil S's user avatar
0 votes
1 answer
929 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 ...
Ziba Leah's user avatar
  • 1,987
1 vote
1 answer
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 ...
Ziba Leah's user avatar
  • 1,987
4 votes
2 answers
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 ...
tarjeieo's user avatar
  • 2,538