Hi All,
My first post in the Power Apps forums.
I've come across an issue I'm having with using the horizontal gallery and buttons.
I have a set of 3 buttons (Button 1, Button 2, Button 3) in the horizontal gallery
I've managed to get to the point where I can show certain cards depending on the button clicked which is great!
Now I want to go even further and permission each button according to the AD group the user belongs to
For example, button 1 is always going to be visible. The form begins on button 1.
Button 2 is for a particular AD group and Button 3 would be for another.
How can I do this using the horizontal gallery?
This is what I currently have
my OnStart is
Set(
varTabSelected,
1
);
Set(
varUser,
User()
);
Set(
isUserMemberM365Group,
!IsBlank(varUser.Email in Office365Groups.ListGroupMembers("adgroupObjectID").value.mail)
);
My gallery Items property is
Table(
{ID:1, Label:"Button 1"},
{ID:2, Label:"Button 2", Visible: isUserMemberM365Group },
{ID:3, Label:"Button 3"}
)
I tested a blank button and changed its visible property to

Report
All responses (
Answers (