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 / Export list of users t...
Power Automate
Answered

Export list of users to xlsx with specific properties using automatic flow in powerautomate

(0) ShareShare
ReportReport
Posted on by

Hello I am trying to get list of users using power automate flow and save it as xlsx file. See below.

 

2022-09-19 12_57_51-Edit your flow _ Power Automate.png

 

I get all the properties except signInActivity. 

I get the result as below: 

 

{
      "displayName""Acronis Backup",
      "mail""xxxxxxxxxxxxxxxxxxx",
      "userType""Member",
      "accountEnabled"true,
      "createdDateTime""2022-08-30T08:32:16Z"
    },
 
No signingactivity properties. How can I get a record of the last sign in. I am new to the api graph. Any help would be appreciated.

 

Categories:
I have the same question (0)
  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @hamid280 ,

     

    Do you have the correct license?

    The following is an example of the request. Details for the signInActivity property require an Azure AD Premium P1/P2 license and the AuditLog.Read.All permission.

    https://learn.microsoft.com/en-us/graph/api/user-list?view=graph-rest-beta&tabs=http#request-2

     

    Besides, the oob http action from group connector does not seem to have enough permission i.e. AuditLog.Read.All permission.

     

    Maybe you need to create a custom connector or use the 'Http' action in flow with aad application.

    Also, this api has an error report. Luckily, it provides a workaround.

    vxiaochenmsft_0-1663647859856.png

    https://learn.microsoft.com/en-us/graph/known-issues#license-check-errors-for-azure-ad-activity-reports

     

    Best Regards,

    Wearsky

  • Verified answer
    lG_2022 Profile Picture
    19 on at

    thank you i was able to solve it but using HTTP. Graph api is not consistant.

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!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 286

#2
David_MA Profile Picture

David_MA 256 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard