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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to check if a emai...
Power Apps
Unanswered

How to check if a email is Group email or individual's email?

(0) ShareShare
ReportReport
Posted on by

Hi Everyone,

 

I have a Person Type column (Allowing multiple selections) in the SharePoint list and that column can contain Group email as well as individual email. Now my query is how can I check which email is a group email? 

 

Thank you 

Categories:
I have the same question (0)
  • v-qiaqi@microsoft.com Profile Picture
    on at

    Hi @Anonymous,

    Do you want to determine whether the email address is a group?

     

    Actually, we could list all the groups we owned, and compare the individual email address with the group we owned.

    ComboBox4_1.Selected.Mail in ForAll(Office365Groups.ListOwnedGroupsV3().value,mail)

    Note that ComboBox4_1.Selected.Mail is a ComboBox populated with all the user emails.

  • Community Power Platform Member Profile Picture
    on at

    @v-qiaqi-msft Thank you for responding. 

    Yes, I have to determine whether the email address is a group email or an individual's email because the Person column which I am using a multi-select column so it can contain more than one email. Now I have to check all the selected email addresses and find out the group email.
    ComboBox4_1 will contain multiple emails.

    Note: I am not the owner of the group. 

  • v-qiaqi@microsoft.com Profile Picture
    on at

    Hi @Anonymous,

    Okay, just modify as below:

    Concat(ComboBox4_1.SelectedItems,Mail,",") in ForAll(Office365Groups.ListOwnedGroupsV3().value,mail)
  • Community Power Platform Member Profile Picture
    on at

    Hi @v-qiaqi-msft 

    "Office365Groups.ListOwnedGroupsV3().value" will return only those groups which I owned or it will also return those groups which I am part of?

  • v-qiaqi@microsoft.com Profile Picture
    on at

    Hi @Anonymous,

    This operation returns a list of all groups that you own and belong to.

  • Community Power Platform Member Profile Picture
    on at

    Hi @v-qiaqi-msft 

    I have tried "Office365Groups.ListOwnedGroupsV3().value" and it is not returning the group of which I am part. Am I missing something here?

  • v-qiaqi@microsoft.com Profile Picture
    on at

    Hi @Anonymous,

    Could you please share your app configuration, show me how you set this formula?

     

    If you are not the owner of the group, it does return nothing.

     

  • Community Power Platform Member Profile Picture
    on at

    Hi @v-qiaqi-msft 

     

    I am using "Concat(Combobox.SelectedItems,Email,",") in ForAll(Office365Groups.ListGroups().value,mail)" this formula in the Text property of label control. I am not an owner of any of the groups however I am a part of a group. Right now the above expression is returning false but it should return true because "Concat(Combobox.SelectedItems,Email,",")" this expression is returning all the selected emails of the combo box, and one of the selected emails is a group email of which I am part of (not the owner). 
    Now I want to identify that group email so that I can show it on a label. 

  • v-qiaqi@microsoft.com Profile Picture
    on at

    Hi @Anonymous,

    Okay, I think we should modify the formula since we want to make either of the selected email match to the groups:

     CountRows(ForAll(ComboBox4.SelectedItems,Email in ForAll(Office365Groups.ListOwnedGroupsV3().value,mail)))>0

    Note that I populate the ComboBox4 with the Choices() function, so I refer to Email parameter.

    vqiaqimsft_0-1687167692957.png

     

  • Community Power Platform Member Profile Picture
    on at

    Hi @v-qiaqi-msft,

    This one worked well and now the only thing I require is that I want to fetch the specific distributed group email (not security Group) address among all the email addresses of the combo box. Is there any way from which I can get the distributed group email address so that I can show it on a label?

     

    Note: I am using Distributed Group/Distributed List, not the Security group. 


    Thanks 
    Tarun 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard