web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / using 365 groups to hi...
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 

 

Categories:
I have the same question (0)
  • help3 Profile Picture
    on at

    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 

     

  • help3 Profile Picture
    on at

    fixed it 

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

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 463

#2
WarrenBelz Profile Picture

WarrenBelz 364 Most Valuable Professional

#3
11manish Profile Picture

11manish 275

Last 30 days Overall leaderboard