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 / SharePoint Site Visito...
Power Automate
Suggested Answer

SharePoint Site Visitors - Building a flow that displays Name and Department of site vistors

(0) ShareShare
ReportReport
Posted on by
I need to build a flow that will display the SharePoint sites visitors Name and Department. I currently have a flow that displays Name using the get HTTP action with Uri _api/web/siteusers but they do not capture department. I have seen Department included in the Microsoft 365 action. How do i have one flow that will display both Name and Department of site visitors. In addition to this, how do i filter out those who have only visited the SharePoint sites for last month only. Very much appreciated your help!
Categories:
I have the same question (0)
  • Suggested answer
    SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at
    The URI _api/web/siteusers primarily provides user names and emails but not detailed profile information such as the department. You can use the "Get user profile (V2)" action from the Office 365 Users connector. This action can retrieve rich profile data if users are part of Microsoft 365.
    Use a loop to iterate over all site users retrieved using _api/web/siteusers. For each user, call the "Get user profile (V2)" action using their email to retrieve their department and other details.

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