cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
FacundoGorla
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
FacundoGorla
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
FacundoGorla
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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Apps Community Call

Monthly Power Apps Community Call

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

secondImage

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (44,302)