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 / Check if an email is i...
Power Apps
Unanswered

Check if an email is in an email group

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have a group email on Outlook that can use an application I'm working on. Only a subset of people in the office can access the application. I basically want to check in the OnStart property of the app if the user's email is in the group or not. 

 

I know there's an Office365Group function and you can find an email using User().Email. I just want to simply check if User().Email is in the group email I created in Outlook. 

 

How do I check this specific email in this specific group?

 

Thanks!

Categories:
  • Merlijn Profile Picture
    128 on at

    Can you get access to the email addresses in this group? Or is that part of your question?

     

    When you have access to these email addresses, and you van ClearCollect them in a local collection OnStart, you can check it with:

     

    If(IsBlank(Lookup(EmailAddressCollection; Email = User().Email));"Formula when is NOT found"; "Formula when IS found") 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @Merlijn thank you for your help! It looks like your solution would work well. One question:

     

    I have access and created the email group myself, but do I need a data connection to the group on PowerApps. After researching ClearCollect, I found this to be as close as I can get: 

    ClearCollect(downtimeGroup,Office365Group.ListGroupMembers('ID'))

    However, I feel I am missing some steps, such as the connection to the group email in PowerApps and the ID it is searching. 

     

    Any bits I am leaving out would be appreciated, as I can't figure it out at the moment.

     

     

  • Merlijn Profile Picture
    128 on at

    Hm. I'm thinking of another solution for your problem.

     

    If you're Office365 admin, you can enter the admincentre. If you create a Security Group, you can add members to it.

    Share your app's with the usergroup, instead of single users, and you can maintain access to the app with adding or removing members.

     

    group.pnggroup2.png

     

     

    Is this maybe an easier, and more maintainable solution for the problem you're experiencing?

  • Merlijn Profile Picture
    128 on at

    You can check this out how to get the Group ID. https://www.sharepointeurope.com/id-office-365-group/

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks for the other possible solution, but I am not an office admin for Office365. It seems ti would be easier for me to try a figure out connecting the email group to my application, and figuring out the ID section. 

     

    I'll read the article you linked me as well. 

     

    I just need figure out how to write a ClearCollect for my group 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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 383 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 356

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard