cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JailsonALM
Frequent Visitor

Power Automate and Windows Active Directory group - ADManager Plus

Hello! Currently I have created a Power Automate flow, which is working fine (screenshot below).
JailsonALM_0-1659701075232.png

However, I am looking to change a step created for something more dynamic:

 

What the current step does: it sends a post adaptive card in a Teams channel to "Approve or Reject" the request and checks if the responder is whoever I have manually typed in (email address) on the condition (screenshot below) 

JailsonALM_1-1659701705825.png

 

Is it possible instead of the step checking for an exact email address, to check for members of an ADManager Plus security group ?

 

Thank you!

 

 

 


 

 

1 ACCEPTED SOLUTION

Accepted Solutions
PowerStudent
Frequent Visitor

Hi there,
i have made the flow to test and it works:

PowerStudent_0-1659706171011.png


simply the steps are:
- its getting list of azure group members then

- then in the next step its picking only email address and creating list

- then in the last step its checking if a specefic mail exisit in that list of mail (for that list of mail its combining list into one line)
Result:

PowerStudent_0-1659706722435.png


in the last action if it finds that email in list of azure group then it will give true otherwise false, so based on that just can add that just 1 in the logic like if -- equals to true then proceed 

code is also showing for the last step.
if still you need my help let me know we can get on call to do this or i can respond you further here.
Or you can also contact us here: softwarezone365.com

If it helps you then Hit the Like Button.!

View solution in original post

6 REPLIES 6
VictorIvanidze
Community Champion
Community Champion

Execute a MS GRAPH request to check if this email address is a member of a group.

Start here: https://developer.microsoft.com/en-us/graph/graph-explorer

--------------------------------------------------------------------------------------
Contact me if you are interested in custom Power Automate development.
PowerStudent
Frequent Visitor

Hi there,
i have made the flow to test and it works:

PowerStudent_0-1659706171011.png


simply the steps are:
- its getting list of azure group members then

- then in the next step its picking only email address and creating list

- then in the last step its checking if a specefic mail exisit in that list of mail (for that list of mail its combining list into one line)
Result:

PowerStudent_0-1659706722435.png


in the last action if it finds that email in list of azure group then it will give true otherwise false, so based on that just can add that just 1 in the logic like if -- equals to true then proceed 

code is also showing for the last step.
if still you need my help let me know we can get on call to do this or i can respond you further here.
Or you can also contact us here: softwarezone365.com

If it helps you then Hit the Like Button.!

JailsonALM
Frequent Visitor

Really appreciated the help!

 

Just wondering how to get the Group Id. Is it through Azure Portal?

JailsonALM_1-1659953629101.png

 

Thanks

 

Yes, go to azure portal https://aad.portal.azure.com/ and then go to Groups after select your group and copy the object id of the group

PowerStudent_0-1659970435947.png

that id is what you need in the action of "Get group members" in Power Automate.

Also accept this response as a solution. if it works

Hi again there,

 

I was just wondering now, how do I make it to accept anyone on the group instead of just a specific email?

 

Thanks

PowerStudent
Frequent Visitor

Sorry not understand clearly but you can contact me 
at:
Email

Contact@SoftwareZone365.com

Website
softwarezone365.com
Fiverr
ahmadraza476 | Desktop Applications

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Users online (2,496)