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

Community site session details

Session Id : vJuK7lWBflFUh2ZOneYVgZ
Power Apps - Building Power Apps
Answered

Create an Azure AD group from a canvas app

Like (0) ShareShare
ReportReport
Posted on 17 Nov 2022 13:05:57 by

Hello team,

 

I have created a canvas app for administering AAD. one of the requirements is to create a new AAD group from within the app.

I wanted to resolve this by using the AzureAD.CreateGroup() function. The function requires the following arguments: 

mathias4_2-1668690057392.png

 

I have created a button control with the following onselect value:  

 

AzureAD.CreateGroup(DisplayName.Text, Description.Text, "MailNickname.Text", [NEED HELP HERE] , SecurityEnabled.Value, MailEnabled.Value)

 

 

My issue is that I don't know how to specify the grouptype (the need help here argument). Following Microsoft's documentation (https://learn.microsoft.com/en-us/connectors/azuread/#creategroup_response) it specifies to choose 'Unified' for an O365 group, which is what I need. I have tried passing 'Unified' as an argument but get an error saying the function expects a table value.

mathias4_0-1668689389576.png

 

Any help would be greatly appreciated!

 

Br.

 

Mathias

  • Community Power Platform Member Profile Picture
    on 21 Nov 2022 at 08:46:23
    Re: Create an Azure AD group from a canvas app

    Thank you so much Bof!

  • Verified answer
    v-bofeng-msft Profile Picture
    on 18 Nov 2022 at 02:11:45
    Re: Create an Azure AD group from a canvas app

    Hi @mathias4 ,

     

    Please try:

    AzureAD.CreateGroup("xxx","xxx","xxx",["Unified"],true,true)

    O365Group-"Unified" 

    Security Group-"None"

     

     

    Best Regards,

    Bof

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

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473

Loading complete