Hi!
I'm trying to use a power automate flow to create an application user in each environment in my Microsoft Entra tenant - this points me to the "create role assignment" action under the Power Platform for Admins (V2) connector.
I've gotten to a place where in the create role assignment parameters I need to input a "scope" and cannot get it to work with the environment id (looping over environments and getting the id property).
The documentation for these actions is not very helpful, and I couldn't find example or help from copilot. Did anyone encounter this issue or something similar regarding a scope parameter?
Will help a ton, thank you!
For reference, the error I get when testing the flow is this:
{
"statusCode": 400,
"body": {
"httpStatusCode": "BadRequest",
"errorCode": "InvalidScopeString",
"errorMessage": "Invalid scope string: 'Default-2502d603-9459-44ab-9344-e8856717cf17'"
}
}