Hello All,
I am trying to get all the User Admin Roles which are there in Microsoft 365 Admin Center in the Power Automate. For getting the Admin Roles I am first using https://graph.microsoft.com/v1.0/directoryRoles API to get all the Directory Roles then I will be running an Apply to each loop with the roles which I get from the above API as a parameter in this API "https://graph.microsoft.com/v1.0/directoryRoles/{role id}/members?$select=id,userPrincipalName".
By using the above APIs I can get the User Admin Roles in Power Automate. But now, I am facing an issue while executing the https://graph.microsoft.com/v1.0/directoryRoles API using the Invoke an HTTP request action. Please refer below error details for same.
I am not using any Azure App Registration ID/Client ID for connection. I am only using details which are shown in below screenshot for creating connection.
Also, I have Granted Admin Consent for Graph Explorer in the Azure AD. Please refer below screenshot for same.
FYI: My account is having Global Administrator permission level as well.
Please help me to find the solution for this issue.
Thanks & Regards,
Abhishek

Report
All responses (
Answers (