cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Resolver II
Resolver II

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
Resolver II
Resolver II

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
Resolver II
Resolver II

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
secondImage

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

Top Solution Authors
Top Kudoed Authors
Users online (16,258)