I created a flow that gets an email address (for a person already in Azure AD) and should add them to several AD groups.
The sequence is:
AzureAD: Get User - passing in email address (triggered by SharePoint list add)
AzureAD: Add User to Group - Passing in:
- The ObjectID of the AD mail-enabled security group (retrieved using PowerShell Get-AzureADGroup command)
- The id value returned by the "Get User" (where id is described as "a unique identifier for the user")
This results in an 400 Bad Request error with the message: Unable to update the specified properties for objects that have originated within an external service
The only doc I can find does not specify if this connector is limited to specific types of AD groups: https://docs.microsoft.com/en-us/connectors/azuread/
So, the most likely problem is that I'm not passing in the correct values. Is that it? Or is it that I can't add users to mail-enabled security groups? Thanks.