cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
FacundoGorla
Level: Powered On

Help with an app using Azure AD connector for user groups

Hi! 

 

I'm curently editing a SharePoint Online list Form. 

My idea is to build 4 screens, one for each group of users that will be editing elements, those screens should be showed to the users depending to wich group they are members of.

 

My best shot at doing this was using Azure AD connector, wich I'm seeing has user and groups functions.

Ideally I would like a function that let's me put a user and a group and gives me a boolean response if the user is a member of said group. 

This way I could put conditions in the OnEdit properties of the SharePoint Integration to Navigate the user to the Right Sreen.

 

So far no luck with this idea. I'm kind of stuck at what function use.

 

Was thinking of this, and then compare it if this ¿List? contains the group I want to set as condition.

If (
"Equipo de Prueba" in AzureAD.GetMemberGroups(
UsuariosdeOffice365.MyProfile().Id ;
true
);
EditForm(SharePointForm1_3);;
Navigate(FormScreen1_3);
EditForm(NewForm);;
Navigate(ScreenNew)
)

 I think the "in" is what is not working here but I don't know how to tell it to test if a specific group is contained in the group ¿List/array? of a user

1 ACCEPTED SOLUTION

Accepted Solutions
FacundoGorla
Level: Powered On

Re: Help with an app using Azure AD connector for user groups

Well, this end up working, not COMPLETELY sure why tho. Feels redundant.

 

If (
    "3a0e0fa1-285a-4b6d-91e3-3dd5cd38a5ee" in AzureAD.CheckMemberGroups(
        UsuariosdeOffice365.MyProfile().Id;
        Table({Value: "3a0e0fa1-285a-4b6d-91e3-3dd5cd38a5ee"})
    );
    EditForm(SharePointForm1_3);;
    Navigate(FormScreen1_3);
    EditForm(NewForm);;
    Navigate(ScreenNew)
)
1 REPLY 1
FacundoGorla
Level: Powered On

Re: Help with an app using Azure AD connector for user groups

Well, this end up working, not COMPLETELY sure why tho. Feels redundant.

 

If (
    "3a0e0fa1-285a-4b6d-91e3-3dd5cd38a5ee" in AzureAD.CheckMemberGroups(
        UsuariosdeOffice365.MyProfile().Id;
        Table({Value: "3a0e0fa1-285a-4b6d-91e3-3dd5cd38a5ee"})
    );
    EditForm(SharePointForm1_3);;
    Navigate(FormScreen1_3);
    EditForm(NewForm);;
    Navigate(ScreenNew)
)

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

PowerApps Monthly Community Call

Tomorrow, September 18th at 8am PDT

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 224 members 3,932 guests
Please welcome our newest community members: