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:
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.
Any help would be greatly appreciated!
Br.
Mathias
Thank you so much Bof!
Hi @mathias4 ,
Please try:
AzureAD.CreateGroup("xxx","xxx","xxx",["Unified"],true,true)
O365Group-"Unified"
Security Group-"None"
Best Regards,
Bof
WarrenBelz
637
Most Valuable Professional
stampcoin
570
Super User 2025 Season 2
Power Apps 1919
473