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 / Azure AD user values t...
Power Automate
Unanswered

Azure AD user values to SharePoint list

(0) ShareShare
ReportReport
Posted on by 21

Hi all.  I'm trying to pull user data from an Azure Active Directory and into a SharePoint list.  It seems as if I'm able to grab 1 user column value (the email address).  The flow doesn't fail, however, the SharePoint list doesn't seem to pick up and populate the column.  I was using this as a resource without full success: 
Solved: Azure Group Members Sync to SharePoint List - Power Platform Community (microsoft.com)

 

mcinnisbr_1-1653670391516.png

 

 

Categories:
  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @mcinnisbr ,

     

    You have had the condition in Filter array operation been changed from "does not contain" to "equal to", could you please explain why? If the condition is equal to, all emails will be ignored since there is nothing in the SP list.

     

    Best regards,

  • mcinnisbr Profile Picture
    21 on at

    Yes, you are correct in regards to steps not followed.  In making the change, I'm running into another error snag.  Any ideas what this means?  Is it that the AAD data type is one, and the sharepoint is another and they dont understand each other?

    mcinnisbr_0-1654109823723.png

     

  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @mcinnisbr ,

     

    Comparing to the thread from the link, I found that you may have mistake in Select 2,

    vjefferni_0-1654137332730.png

    Please change to text mode then select the dynamic content:

    vjefferni_1-1654137476129.png

     

    Best regards,

  • mcinnisbr Profile Picture
    21 on at

    @v-jefferni, thanks for the feedback! Interesting.  However, that didn't seem to solve.  Still running this error:

     

     

    InvalidTemplate. The execution of template action 'Filter_array' failed: The evaluation of 'query' action 'where' expression '@not(contains('(join(body(''Select''), '';'')', item()))' failed: 'The template language function 'contains' expects parameters of matching types: a dictionary and a key (string), an array and a value (object), or a string and a substring. The provided types 'String' and 'Object' are incompatible. Please see https://aka.ms/logicexpressions#contains for usage details.'.

     

     Still wondering if this logic is off in filter array, or that I just don't understand what it's doing.
    @not(contains('(join(body(''Select''), '';'')', item()))

  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @mcinnisbr ,

     

    The error message is telling that the expression of filter array is incorrect, data types of the two parameters for the contains function is not matching.

     

    You have 2 Select operators that need to switch mode for mapping:

    vjefferni_0-1654484299585.png

     

    Without switching mode, the outputs of the two operators will be blank and of type string. In that thread, the two operators are as below:

     

    vjefferni_1-1654484464676.png

     

    Hope this helps.

     

    Best regards,

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 426

#2
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 308

Last 30 days Overall leaderboard