web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Adding security group ...
Power Automate
Unanswered

Adding security group membership based on a form (multiple options)

(0) ShareShare
ReportReport
Posted on by 34

Hi Guys,

 

Hoping someone can help me with this one. I am trying to add a step where we can add a new user to multiple groups when they have been selected in the initial Microsoft Form. So this is the scenario:

 

New User Form:

 

david_ashworth_0-1634856940004.png

 

So we select the groups we want this user to be a part of. Then in the flow we get the response details

 

david_ashworth_1-1634856999094.png

 

My question is how do we extract that info from the "group membership" field and make it a variable where that can be used in either "add to group" or be used in a runbook as a parameter? Where i see the issue is that sometimes you may have 1 group membership and other times 5,7 or 10 - how do we account for the changes in different scenarios?

 

Thanks,
David

 

Categories:
I have the same question (0)
  • eric-cheng Profile Picture
    5,171 on at

    Hi @david_ashworth ,

     

    You can save the multi choice as an array and then loop through each selected option.

    ericcheng_0-1634870495552.png

     

    ericcheng_1-1634870505803.png

     

    {
        "type""array",
        "items": {
            "type""string"
        }
    }
     
    --------------------------------------------------------------------------
    If I have answered your question, please mark my post as a solution
    If you have found my response helpful, please give it a thumbs up

    Connect on LinkedIn

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 237 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 173 Super User 2026 Season 1

#3
Kalathiya Profile Picture

Kalathiya 95 Super User 2026 Season 1

Last 30 days Overall leaderboard