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 / Report on Multi factor...
Power Automate
Unanswered

Report on Multi factor Authention using MS Graph

(0) ShareShare
ReportReport
Posted on by 6

Hello,

 

Trying to the build a FLOW that is using an HTTP GET https://graph.microsoft.com/beta/reports/credentialUserRegistrationDetails

 

It returns ODATA JSON object. Unable to get this into an array to select each return item for each user to send an email to indicate which is dont have 2FA enable.

 

Could someone please help build this flow? Please no shortcut answer, too many people are only posting basic stuff

 

{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"userPrincipalName": {
"type": "string"
},
"userDisplayName": {
"type": "string"
},
"isRegistered": {
"type": "boolean"
},
"isEnabled": {
"type": "boolean"
},
"isCapable": {
"type": "boolean"
},
"isMfaRegistered": {
"type": "boolean"
},
"authMethods": {
"type": "array"
}
}
}

Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @dharin-sukar,

     

    When you use this in a HTTP action you should be able to return the results as an array from the body/value property.

     

    Below is an example.

    In this example I am using a Filter Array which uses the following expression for the From

    body('HTTP')['value']

     

    In the criteria it check if  the isMfaRegistered field is false by using the follwing expression:

    item()?['isMfaRegistered']

    is equal to false

     

    After that I use the output in a Create CSV Table action. But you could also loop through that filtered array output if you want.

     

    exportcsvtable.PNG

  • dharin-sukar Profile Picture
    6 on at

    Very cool thank you,

     

    I am getting an error on the filter array from the http output value, any ideas?

     

    dharinsukar_0-1662771323375.png

     

  • Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @dharin-sukar,

     

    Can you copy paste the expression into the From field via the expression editor instead of pasting it as plain text?

     

    copypasteitinthexpressiontab.png

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

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard