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

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Getting and updating Sharepoint list from O365 users

(1) ShareShare
ReportReport
Posted on by 2

Hi!

 

My intention is to create a Users-list in Sharepoint that is based on O365 users. The list should be in sync with O365 users so if somebody is deleted from O365 the list item is deleted from Sharepoint. Same goes with new user appearing in O365 and that would be added in the list. My first question is about comparing the list to O365 users. Can I compare the changes both ways in one flow command or do I have to compare the lists first O365 users against Sharepoint list to see if new users have been added to O365?After that compare Sharepoint list against O365 users to see if somebody has been deleted.

 

Other question is about updating user data to Sharepoint list. If something is updated in O365 user profile what is the best approach to do the update? Do I create once a day flow that checks everything form O365 to see if something is updated by going row by row and column by column? Or is there a better trigger to do it by row example (changed modification time etc)? Best in my opinion would be that the update in O365 profile would trigger the update process. Is that possible?

 

The automation intent is to use it with Sharepoint webpart that would fetch user data from the Sharepoint list. I could do it straight from O365 users in webpart but there has to be customised data included in user data for example user status, work years etc. so it has to be saved in Sharepoint list.

 

I have also a question about arrays. The O365 Users fetch also Business Phones array that is inside the object fetched. When I'm using Select action for example can I get the phone number from business phones by using expression and index of the array meaning [index number]?

 

All help is appreciated 🙂

 

Br

 

C

 

I have the same question (0)
  • abm abm Profile Picture
    32,585 Most Valuable Professional on at
    Re: Getting and updating Sharepoint list from O365 users

    Hi @Coda 

     

    Since there are no triggers for Office365 user connector you need to compare each user record vs Lists rows using a foreach loop or get all the values in an array and compare the values.

     

    How to compare two arrays?

    https://powerusers.microsoft.com/t5/General-Power-Automate/get-differences-from-2-arrays/td-p/304051?lightbox-message-images-304133=71428i97C8F2B672108422

     

    How to get telephone number attribute from user profile?

    https://powerusers.microsoft.com/t5/Building-Flows/Get-telephoneNumber-attribute-from-User-Profile/td-p/178901

     

    Thanks

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 788 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 452 Moderator

#3
developerAJ Profile Picture

developerAJ 302

Last 30 days Overall leaderboard