Showing results for 
Search instead for 
Did you mean: 
Regular Visitor

Microsoft Flow - Impersonate User while uploading file to sharepoint



I am uploading files to the SharePoint using Microsoft Flow. The 'Created By' column in SharePoint Document Library shows the name of the System Account which is being used to connect MS Flow to the SharePoint.


I wish to show the name of the actual user, who has uploaded the file. I have the email ID of the user who has uploaded the file. 


Is there a way through which i can resolve the User object corresponding to the email ID and set it in the created by field in sharepoint? Also, is there a way to impersonate as a particular user while uploading the file?




Community Support
Community Support

Re: Microsoft Flow - Impersonate User while uploading file to sharepoint

Hi @namit_gupta,


Do you want to change the value of the Created field of the SharePoint Document Library to the person who actually uploaded the file, rather than the connection account of the configuration of the Flow that uploaded the file?

I tried using the Send Http request to SharePoint action to change this property via the Post method, but when I proceeded to configure the Request Body, I found no way to get the specific information of the Created property.

In general, the Created property contains the following, but there is no way to indicate in the Request body that the property needs to be changed:


This is my attempts, it can change some other properties, but there seems to be no way to change Created:


<?xml version="1.0" encoding="utf-8"?>
<entry xml:base=""
    xmlns:gml="" m:etag="&quot;22&quot;">
    <category term="SP.Data.TRONItem" scheme="" />
    <link rel="edit" href="Web/Lists(guid'70d3b5ce-6dfd-4a24-8dd0-d417ccc97754')/Items(1)" />
    <link rel="" type="application/atom+xml;type=entry" title="FirstUniqueAncestorSecurableObject" href="Web/Lists(guid'70d3b5ce-6dfd-4a24-8dd0-d417ccc97754')/Items(1)/FirstUniqueAncestorSecurableObject" />
    <link rel="" type="application/atom+xml;type=feed" title="RoleAssignments" href="Web/Lists(guid'70d3b5ce-6dfd-4a24-8dd0-d417ccc97754')/Items(1)/RoleAssignments" />
    <link rel="" type="application/atom+xml;type=feed" title="AttachmentFiles" href="Web/Lists(guid'70d3b5ce-6dfd-4a24-8dd0-d417ccc97754')/Items(1)/AttachmentFiles" />
    <link rel="" type="application/atom+xml;type=entry" title="ContentType" href="Web/Lists(guid'70d3b5ce-6dfd-4a24-8dd0-d417ccc97754')/Items(1)/ContentType" />
    <link rel="" type="application/atom+xml;type=entry" title="GetDlpPolicyTip" href="Web/Lists(guid'70d3b5ce-6dfd-4a24-8dd0-d417ccc97754')/Items(1)/GetDlpPolicyTip" />
    <link rel="" type="application/atom+xml;type=entry" title="FieldValuesAsHtml" href="Web/Lists(guid'70d3b5ce-6dfd-4a24-8dd0-d417ccc97754')/Items(1)/FieldValuesAsHtml" />
    <link rel="" type="application/atom+xml;type=entry" title="FieldValuesAsText" href="Web/Lists(guid'70d3b5ce-6dfd-4a24-8dd0-d417ccc97754')/Items(1)/FieldValuesAsText" />
    <link rel="" type="application/atom+xml;type=entry" title="FieldValuesForEdit" href="Web/Lists(guid'70d3b5ce-6dfd-4a24-8dd0-d417ccc97754')/Items(1)/FieldValuesForEdit" />
    <link rel="" type="application/atom+xml;type=entry" title="File" href="Web/Lists(guid'70d3b5ce-6dfd-4a24-8dd0-d417ccc97754')/Items(1)/File" />
    <link rel="" type="application/atom+xml;type=entry" title="Folder" href="Web/Lists(guid'70d3b5ce-6dfd-4a24-8dd0-d417ccc97754')/Items(1)/Folder" />
    <link rel="" type="application/atom+xml;type=entry" title="LikedByInformation" href="Web/Lists(guid'70d3b5ce-6dfd-4a24-8dd0-d417ccc97754')/Items(1)/LikedByInformation" />
    <link rel="" type="application/atom+xml;type=entry" title="ParentList" href="Web/Lists(guid'70d3b5ce-6dfd-4a24-8dd0-d417ccc97754')/Items(1)/ParentList" />
    <link rel="" type="application/atom+xml;type=entry" title="Properties" href="Web/Lists(guid'70d3b5ce-6dfd-4a24-8dd0-d417ccc97754')/Items(1)/Properties" />
    <link rel="" type="application/atom+xml;type=feed" title="Versions" href="Web/Lists(guid'70d3b5ce-6dfd-4a24-8dd0-d417ccc97754')/Items(1)/Versions" />
    <title />
        <name />
    <content type="application/xml">
            <d:FileSystemObjectType m:type="Edm.Int32">0</d:FileSystemObjectType>
            <d:Id m:type="Edm.Int32">1</d:Id>
            <d:ServerRedirectedEmbedUri m:null="true" />
            <d:ID m:type="Edm.Int32">1</d:ID>
            <d:Created m:type="Edm.DateTime">2018-10-23T05:39:40Z</d:Created>
            <d:AuthorId m:type="Edm.Int32">6</d:AuthorId>
            <d:Modified m:type="Edm.DateTime">2018-10-23T06:46:32Z</d:Modified>
            <d:EditorId m:type="Edm.Int32">6</d:EditorId>
            <d:OData__CopySource m:null="true" />
            <d:CheckoutUserId m:null="true" />
            <d:GUID m:type="Edm.Guid">55383cde-f7b3-48be-aa8e-0589f67e0fb9</d:GUID>
            <d:ComplianceAssetId m:null="true" />

Properties does not seem to contain the relevant content of Created.

Some links that can be referenced:






I am afraid there is no suitable way to change the value of this field through Flow.

Besides, please consider submit this as an idea in the Microsoft Flow idea forum, so it might be considered for future releases.


Best Regards,


Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Re: Microsoft Flow - Impersonate User while uploading file to sharepoint

Hey, @namit_gupta!

Thank you for posting on the Flow Community Forum! It appears as though @v-bacao-msft would like some more information in order to further assist you properly with your issue. Please share any additional information that was requested in order to decrease the amount of time that it will take for you to be assisted!

Thank you for being an active member of the Flow Community!

Flow Community Manager

Microsoft Power Automate Community Manager
Are YOU a member of your local Power Automate User Group?
Fill out This Form to claim your Community User Group Member Badge!

Helpful resources


Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!


New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!


Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Top Kudoed Authors
Users online (7,443)