web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Set default value by l...
Power Automate
Answered

Set default value by logged user for people and groups column type in a SharePoint list

(0) ShareShare
ReportReport
Posted on by 205
Hi Everyone,
 
I have a column in SharePoint list with Person type.
 
 
Can we set the logged user is the default value in the CurrentLoggedUser field when adding a new item?
 
 
  -> default value is the current logged user
 
Thanks a lot!
ROSE
Categories:
I have the same question (0)
  • Verified answer
    MS.Ragavendar Profile Picture
    5,015 Super User 2025 Season 2 on at
     
    In SharePoint Online, you cannot set the default value for a Person or Group column directly in list settings. However, you can achieve this using Power Automate or JSON column formatting but column format only display.
     
    Approach 1
    • Create → Automated cloud flow.
    • Choose "When an item is created" (SharePoint trigger) and choose your SharePoint List.
    • Click + New Step → Update item and Select Person column.
    • Set its value to "Created By" (this automatically assigns the user who created the item).
    • Save & Test.
     
    Approach 2
     
    If you want only display the logged-in user but not set it as a default, you can apply JSON formatting.
     
    Click the Person column → Column settings → Format this column and Select Advanced mode and paste this JSON
     
    {
      "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
      "elmType": "div",
      "txtContent": "=[$CreatedBy.displayName]"
    }
     
     
    Approach 3
     
     
    If you any queries revert me back.
     
    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item
  • ROSEBLACK Profile Picture
    205 on at
    Thank you very much @
     
    For the approach 1, this automatically assigns the user who created the item -> it is not suitable in my case, for example User A is logging in to filling  data on behalf of User B so that the user A need to select email of the user B in the field.
     
    For the approach 2, column format only display -> no data recorded.
     
    Cheer!
    ROSE
  • MS.Ragavendar Profile Picture
    5,015 Super User 2025 Season 2 on at
     
    You have clarified about the both approaches, BTW what is the approach which you opted for solving your problem?
  • ROSEBLACK Profile Picture
    205 on at
     
    I closed the question because there was no better option.
    I had to change my approach.
     
    Thanks a lot!
    ROSE

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard