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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Help: Power Automate S...
Power Automate
Suggested Answer

Help: Power Automate SharePoint "Create Item" User Not Found Error

(0) ShareShare
ReportReport
Posted on by

Hi Power Automate Community,

I'm trying to build an automated rotation system for a call center support team using Microsoft Lists, Power Automate, and Planner, based on a detailed guide. The system manages 27 staff (8 leads, 19 staff across 4 teams) with morning and afternoon shifts, ensuring fair rotation and backups. The guide uses SharePoint lists for Staff Directory and Assignment Log, and Power Automate flows for assignments.

 

I've set up the Staff Directory (static list with name/email, team, role, rotation order, assigned count, last assigned, last backup used - read-only for staff) and Assignment Log (dynamic list for daily assignments, backups, check-ins - staff can only edit "Signed In").

 

The flow is the "Morning Assignment Flow" (scheduled at 8:00 AM weekdays). I've built it step by step, but I'm stuck on the "Create item" step for adding the lead row to the Assignment Log. It fails with a "user not found" error when trying to set the Assigned Name (a Person or Group field in SharePoint).

 

Here's a summary of the guide and what I've done:

 

Overview from Guide

 

  • Fetch staff from Staff Directory.

  • Filter and sort leads by rotation order.

  • Append selected lead to an array variable (Assigned Users).

  • Filter unassigned leads for backups, map and sort by last backup used.

  • Create row in Assignment Log with Assigned Name, Backup1, Backup2 (all Person or Group fields), Day, Shift, Role, Signed In, Reassigned.

  • Update Staff Directory with new counts/dates.



  •  

My Flow Steps So Far (with Renamed Titles for Clarity):

 

  1. Recurrence (weekdays at 8 AM).

  2. Initialize variable - TODAY (string, formatDateTime(utcNow(), 'dddd')).

  3. Initialize variable - ASSIGNED USERS (array, []).

  4. Get items - STAFF DIRECTORY (site: [redacted SharePoint site], list: Staff Directory, top count 50).

  5. Filter array - STAFF DIRECTORY LEADS (from Get items value, Role Value = 'Lead').

  6. Compose - CHECK NUMBER OF LEADS (length(body('Filter array - STAFF DIRECTORY LEADS'))).

  7. Select - SPECIFIC LEADS (from Filter array body, map: {"Rotation Order":item()?['Rotation_x0020_Order'], "Assigned Count":item()?['Assigned_x0020_Count'], "Last Assigned":item()?['Last_x0020_Assigned'], "Name":item()?['Name/Email'], "Item ID":item()?['ID']} ).

  8. Compose - SORT LEADS BY ROTATION ORDER (sort(body('Select - SPECIFIC LEADS'), 'Rotation Order', 'asc')).

  9. Append to array variable - APPEND LEAD TO ASSIGNED USERS (variables('ASSIGNED USERS'), first(outputs('Compose - SORT LEADS BY ROTATION ORDER'))?['Name']).

  10. Filter array - UNASSIGNED LEAD BACKUPS (from Get items value, Role Value = 'Lead' AND Name/Email does not contain first(outputs('Compose - SORT LEADS BY ROTATION ORDER'))?['Name']).

  11. Select - MAP LEAD BACKUP DATA (from Filter array body, map: [{"Last Backup Used": item()?['Last_x0020_Backup_x0020_Used'], "Name": item()?['Name/Email'], "Item ID": item()?['ID']}] ).

  12. Compose - SORT LEADS BACKUPS (sort(body('Select - MAP LEAD BACKUP DATA'), 'Last_x0020_Backup_x0020_Used', 'asc')).

  13. Create item - LEAD ASSIGNMENT ROW (site: [redacted], list: Assignment Log, fields as below).


  14.  

Problem Step: Create Item - LEAD ASSIGNMENT ROW

 

  • Day: Variables > TODAY

  • Shift: Morning

  • Role: Lead

  • Signed In: No

  • Reassigned: No

  • Content Type ID: Item

  • Assigned Name, Backup1, Backup2: These are Person or Group fields in SharePoint, expecting user emails.



  •  

The flow runs fine up to this step, but "Create item" fails with errors like "The specified user could not be found."

 

Expressions I've Tried for Assigned Name, Backup1, Backup2:

 

  • Plain: first(outputs('Compose-SORT_LEADS_BY_ROTATION_ORDER'))?['Name'] for Assigned Name; similar for backups.

    • Error: "The specified user {"@odata.type":"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser","Claims":"i:0#.f|membership|[redacted email]","DisplayName":"[redacted]","Email":"[redacted email]","Picture":"[redacted]","Department":"[redacted]","JobTitle":"[redacted]"} could not be found."



    •  
  • With Claims prefix: concat('i:0#.f|membership|', first(outputs('Compose-SORT_LEADS_BY_ROTATION_ORDER'))?['Name'])

    • Error: Similar "user not found", but input shows prefixed with full object.

    •  
  • Extracting Claims: first(outputs('Compose-SORT_LEADS_BY_ROTATION_ORDER'))?['Name']?['Claims']

    • Error: "Property 'Claims' cannot be selected. Property selection is not supported on values of type 'String'."


    •  
  • Skip for Backup2: skip(outputs('Compose-SORT_LEADS_BACKUPS'),1)[0]?['Name'] (with variations including ?['body/value'] which caused array selection errors).


  •  

The Staff Directory has "Name/Email" as a Person or Group column, so Get items returns user objects with Claims, Email, etc. But when I try to pass just the email or claims, SharePoint doesn't recognize the user.

 

Notes:


  • Dynamic content shows "Outputs" under Compose steps, with fields like Rotation Order, Assigned Count, Name (which is the email/user object).

  • List settings: Assigned Name, Backup1, Backup2 are Person or Group (allow single value, show Email).

  • Tested manually running the flow; previous steps output correct sorted arrays with user emails.


  •  

I've tried multiple variations, but it seems like the input format isn't matching what SharePoint expects for Person or Group fields. Has anyone built something similar? How do I correctly pass the user from a sorted array to a SharePoint Create item action?

 

"I’m new to Power Automate and SharePoint with no prior knowledge, and I’m finding this challenging to figure out on my own. If anyone is available to hand-hold me through the rest of the process...walking me through the remaining steps or troubleshooting further...I’d greatly appreciate the support. 

 

Thanks for any help!

Categories:
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,969 Moderator on at
     
    make sure its all lower case when you pass it or it will fail.
     
    Id have to see the entire json to verify it if you are already using lower case.
     
    ALso just validate the environment and tenant for sure. to make sure you aren't using personal accounts in business tenants etc.
     

    If these suggestions help resolve your issue, Please consider Marking the answer as such and also maybe a like.

    Thank you!
    Sincerely, Michael Gernaey

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 594

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 281 Super User 2026 Season 1

Last 30 days Overall leaderboard