I am brand new to Power Automate. I am looking to do the following.
Create a flow that's triggered by a Microsft form submission.
1) I have created a Microsoft form with a number of fields; full-name, surname, email address and semi-colon list of "AAD group names" separated by a semi-colon(s).
2) I have been following the following article.
Create AAD Guest User with Invitation
3) I have created and tested the following which works;
- One Microsoft form will fields; fullname, surname, email-address and AAD-groups. NB: the AAD group name value format is.
"aad-grp-name1;aad-grp-name2,aad-grp-name3"
- The 'flow' checks to see if the 'email address' exists in AAD and if it doesn't the 'flow' creates a AAD 'guest' user and sends out an email invitation - this all works.
4) What I need help with (code and screen-shots if possible) in 'flow'...
After the AAD 'guest user' creation...
- Split the AAD group string in to individual groups (maybe in to a string array)???
- Loop through the array contanining and for each AAD group..
- Check the group exists in AAD. If the group exists add the 'guest' user if they're not in the group already.
- If the AAD group doesn't exist ignore and move on to the next group in the array OR the user already in the grou.

Regards