Let's POWER Automate

From no-code to low-code

Menu
  • Expressions
  • Filters
  • General
  • Application specific solutions
    • Dataverse
    • Excel
    • Forms
    • Planner
    • Outlook
    • SharePoint
    • Teams
  • Triggers
  • Resources
  • ABOUT ME
  • Get help with your flow
Menu

How to update multiple people or group column in Power Automate

Posted on November 18, 2020May 23, 2021 by Tom

“I want to update a multi-selection people picker field with the results of a different SharePoint list using Power Automate.”


‘Person or Group’ SharePoint column is one of the complicated ones to update using Power automate. When it’s just one user, it works fine. But once you try to update multiple people, it gets more complicated. You can’t use simply the dynamic from another item, or list of email addresses of the users either. The ‘Update item’ action requires an array with email addresses in the following format.

[
   { "Claims": "user1@company.com" },
   { "Claims": "user2@company.com" }
]

It’s just one of the user properties available, so how to extract it?

‘Select’ action

The easiest way is to use ‘Select’ action. This action expects an array, e.g. the dynamic content with multiple users. By default, the dynamic content contains multiple users with multiple properties. You can see an example below.

[
    {
        "@odata.type": "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
        "Claims": "i:0#.f|membership|user1@company.com",
        "DisplayName": "User One",
        "Email": "user1@company.com",
        "Picture": "https://..."
    },
    {
        "@odata.type": "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
        "Claims": "i:0#.f|membership|user2@company.com",
        "DisplayName": "User Two",
        "Email": "user2@company.com",
        "Picture": "https://..."
    }
],

Using the ‘Select’ action, you can select only the properties you need and skip the rest. Here you’re interested only in the ‘Claims’ property. You’ll tell the action: “take the whole array of ‘Approvers’, and select only ‘Approver email’ for each of them. And map the property to ‘Claims’ key”. Output of the action can be then used to update the column.

Power Automate update multiple people picker column

Update: if you’d like to update only one, person or group column, you can do that with an HTTP request.

Summary

Taking users from multiple people picker column is the easy way to update another multiple people picker. You already got all the data you need in an array, you just need to reduce it. Keep only the email with proper key, and that’s it.

It’s one of the basic functionalities when building approval processes based on configuration lists, updating users for scheduled task reminders, or just keeping lists synchronized.


Do you struggle with the various expressions, conditions, filters, or HTTP requests available in Power Automate?

I send one email per week with a summary of the new solutions, designed to help even non IT people to automate some of their repetitive tasks.

All subscribers have also access to resources like a SharePoint Filter Query cheat sheet or Date expressions cheat sheet.

Zero spam, unsubscribe anytime.

6 thoughts on “How to update multiple people or group column in Power Automate”

  1. Karen Cuenco says:
    July 29, 2021 at 7:55 am

    Thank you!!!!

    Reply
  2. Jameel says:
    December 14, 2021 at 12:45 am

    I’ve checked multiple sites for this and your method is BY FAR the easiest and cleanest. Just Select. Others try to loop and add to arrays and then use select on those arrays. Here its much easier just to use what Power Automate already provides. Well done.

    Reply
  3. Becca L says:
    January 28, 2022 at 10:43 pm

    This is great when you want to update a list, but I need a solution to update a file property that is a people or group column for the approvers that a create an approval went to. Any ideas?

    Reply
    1. Tom says:
      January 29, 2022 at 7:28 pm

      Hello Becca,
      it doesn’t matter if it’s a SharePoint list or a document library, the update is the same, it just uses a different action: Update item vs. Update file properties.

      Reply
  4. Andy says:
    February 3, 2022 at 8:07 pm

    Thank you !!
    This post gave the inspiration to solve a big problem

    Kisses

    Andy

    Reply
  5. S.P. says:
    July 8, 2022 at 2:27 pm

    Thank you very much indeed Tom for your help. Your advice helped me fix my problem – How to collect multiple email addresses on MS Form and Update SharePoint List via Power Automate?

    With the very best wishes…

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Do you know what to do, but not how to do it?

Get The Ultimate Power Automate expressions cheat sheet and translate your thoughts into flows with ease!


There's also the HTTP requests to SharePoint cheat sheet to help you overcome limitations of some standard actions!

Do you struggle with the various expressions, conditions, filters, or HTTP requests available in Power Automate?

I send one email per week with a summary of the new solutions, designed to help even non IT people to automate some of their repetitive tasks.

All subscribers have also access to resources like a SharePoint Filter Query cheat sheet or Date expressions cheat sheet.

Zero spam, unsubscribe anytime.

Didn't find what you were looking for?
Need to adjust a solution to fit your needs?
Or would you just like to get an assistance from somebody with 1000s of hours of experience with Power Automate?

Power Automate blogs worth visiting

Damien Bird
Dennis (Expiscornovus)
Paul Murana

©2023 Let's POWER Automate | Theme by SuperbThemes