Forum Discussion
Created By column on a SharePoint list picking up wrong info
I have a general user account and another account (DAS Power Automate) that I use for Power Automate flows. I am logged in with my user account as usual but when I create an item on one SharePoint list, SharePoint enters DAS Power Automate in the Created By column.
If I look at the users for the list, it shows my account as the user in the list, so I am a little confused as to why it picks up the other account.
I have tested other SharePoint lists on the same site and all others correctly show my user account name in the Created By columns.
Does any one have any ideas? Thank you
To fix this, check if a flow is triggered when an item is created and review which account is used in the flow's connections. If it's using the service account, reconfigure the flow to run in the context of the initiating user (using “Run-only users” or a trigger that captures user context), or temporarily disable the flow to verify if items are then created under the correct user account.
------------------------------------
Don't forget to mark as solution if my answer suits you
2 Replies
To fix this, check if a flow is triggered when an item is created and review which account is used in the flow's connections. If it's using the service account, reconfigure the flow to run in the context of the initiating user (using “Run-only users” or a trigger that captures user context), or temporarily disable the flow to verify if items are then created under the correct user account.
------------------------------------
Don't forget to mark as solution if my answer suits you- MartynowIron Contributor
Go to SharePoint List Settings → Modify the default value of the Creator column to Me. Alternatively, correct the data via PowerShell:
Set-PnPListItem -List ListName -Identity ItemID -Values @{Author = (Get-PnPUser -Identity CorrectUser).Id} .