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

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 8

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)
)

View solution in original post

1 REPLY 1
FacundoGorla
Level 8

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)
)

View solution in original post

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps Community User Group Member Badge

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

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors
Users online (5,252)