We have the following Mail-Enabled Security group:
So my question is, can I get the members of a Mail-Enabled security group inside my automated workflow?
You can use List group members action available in Office 365 Groups connector in Power automate flows to fetch the members of Mail enabled security groups like:
You have to enter the group ID of Mail enabled security group in above action which you can get from admin center:
Documentation: List group members
Yes, you can use the Send an HTTP request action in the Office 365 Groups connector to do it. This action enables you to make calls to the Microsoft Graph. The operation you want is List Members.
To use this operation you'll need the Id of the group, which is a GUID. You can get this by selecting the group in the Microsoft 365 admin center and extracting the Id from the URL. For example:
https://admin.microsoft.com/#/groups/:/GroupDetails/c9f5aa52-b267-4ca9-8d89-caf67a698886/3