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

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
    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

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 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard