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 / Office365Groups email ...
Power Apps
Unanswered

Office365Groups email address from SecurityGroupID

(0) ShareShare
ReportReport
Posted on by 91

Is there any way to get email address having SecurityGroup id?

I know I can get GroupMembers using

>Office365Groups.ListGroupMembers(SecurityGroupID).value

 

but how to get Email address of that group out of SecurityGroupID?

Categories:
  • BCLS776 Profile Picture
    8,994 Moderator on at

    Try the Azure AD (GetGroup) connector instead. The Office365Groups connector deals with O365 groups only, if I remember right.

     

    Hope that helps,

    Bryan

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @Yakimo 

     

    In this example, 

    • MembersInDevelopmentGroup is the list of users with full details
    • Collecting the members from "Development" group
    • You can add yours

     

     

    ClearCollect(
     AllADGroup,
     AddColumns(
     Distinct(
     GroupIDs,
     Value
     ),
     "GroupName",
     AzureAD.GetGroup(Result).displayName
     )
    );
    Clear(MembersInDevelopmentGroup);
    ForAll(
     AllADGroup,
     If(
     GroupName = "Development",
     Collect(
     MembersInDevelopmentGroup,
     Office365Groups.ListGroupMembers(Result).value
     )
     )
    );

     

    Note: AzureAD and Office365Groups connectors used

     

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @Yakimo 

     

    This gets name , id and email of Group

     

    ClearCollect(
     colAllADGroups,
     ShowColumns(Office365Groups.ListOwnedGroups().value,"id","mail","displayName")
    );

     

     

    and this gets group members for "Development" group

    Clear(MembersInDevelopmentGroup);
    ForAll(
     colAllADGroups,
     If(
     displayName = "Development",
     Collect(
     MembersInDevelopmentGroup,
     ShowColumns(Office365Groups.ListGroupMembers(id).value,"id","mail","displayName")
     )
     )
    );

     

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @Yakimo 

     

    Sample(s) from the above code

     

    StalinPonnusamy_0-1628823436801.png

    StalinPonnusamy_1-1628823487890.png

     

     

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 402 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 296 Most Valuable Professional

Last 30 days Overall leaderboard