Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

using 365 groups to hide and show a button

(0) ShareShare
ReportReport
Posted on by

Hi, 

 

I have created a few buttons and i want to hide them, based on the 365 groups the user are in.  I have tested both these Fx on the visible setting of the button. It looks like its working because it hiding them from me.  but when i add myself to the group it still does not show up for me.  

 

I don't get any errors. I have added the Office365group connecter as well. 

 

If(CountRows(Filter(Office365Groups.ListGroupMembers("ID_is here").value, mail = User().Email))
<> 0,

true,
false)

 

or this one 

 

!IsEmpty(Filter(Office365Groups.ListGroupMembers("idishere").value,mail=User().FullName))

 

 

but if i user this it works and show the button. 

 

If(
User().FullName = "" ||
User().FullName = "" ||
User().FullName = "",
true,
false
)

 

 

so i thinking it might be something to do with the groups. 

 

Kind Regards 

 

  • help3 Profile Picture
    on at
    Re: using 365 groups to hide and show a button

    fixed it 

    !IsEmpty(Filter(Office365Groups.ListGroupMembers("ID").value,Lower(mail)= Lower(User().Email)))
     
  • help3 Profile Picture
    on at
    Re: using 365 groups to hide and show a button

    I think i know the problem, is there a way to user this Fx below.  

    i did a test and my E-mail is coming out as TEst@company.com but i need to convert it down to test@compay.com 

     

    i tried this 

     

    !IsEmpty(Filter(Office365Groups.ListGroupMembers("ID").value,mail= Lower(User().Email)))

     

    but it did not work, not sure if I'm doing it right. 

     

    Kind Regards 

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard