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 / GRANT ACCESS TO SPECIF...
Power Apps
Unanswered

GRANT ACCESS TO SPECIFIC GROUPED EMAIL ADDRESSES (DISABLE BUTTON IF EMAIL NOT INCLUDED)

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have button, and want to grant specific access to a group email address xyz@love.com (which contain 60 emails users).

 

I have tried using the group email address as below;

 

If("xyz@love.com" = User().Email, DisplayMode.Edit, DisplayMode.Disabled)

 

it doesnt grant anyone of the 60 email users access, button is disabled.

 

how do i work with group email here? instead of typing over 60 emails like below

 

If("Janet.Anda@x.com" = User().Email || "jogh.ami@x.com" = User().Email || "kayi.ayi@x.com" = User().Email, DisplayMode.Edit, DisplayMode.Disabled)

Categories:
I have the same question (0)
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Anonymous 

    Your formula doesn't work because the users' email address is not what you stated.  They all have unique email addresses.  You are trying to determine if they are in a group which has such an email address.

     

    To do this you will need to utilize the Office365Groups connector and the ListGroupMembers action.

    You will need to know the group ID for the xyz@love.com group.

     

    This is expensive in terms of processing, so I would perform this ONCE, like in the OnStart action of your app and set a global variable to use elsewhere.

     

    Ex.

    OnStart:

    Set(isGroupMember,
     LookUp(
     Office365Groups.ListGroupMembers(<groupIDhere>).value,
     StartsWith(Mail, User().Mail),
     true
     )
    )

     

    Then you can use this variable in your formulas.

    Ex.

    If(isGroupMember, DisplayMode.Edit, DisplayMode.Disabled)

     

    I hope this is helpful for you.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    thank you for your prompt response @RandyHayes , i also have multiple group emails to use with the app, how do i go about that please?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard