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 / Get a list of emails f...
Power Apps
Unanswered

Get a list of emails from an AD Group and populate a sharepoint list dropdown

(0) ShareShare
ReportReport
Posted on by

In a sharepoint list, is it possible to populate a dropdown list with users/emails from a specific group from AD?

I'm assuming this is not possible in the vanilla form editor but if I build a Power App form for this list how would I go about automatically pulling the user/email in a dropdown list?

 

 

Categories:
I have the same question (0)
  • C-Papa Profile Picture
    1,836 on at

    If you create a form from a SharePoint list that has a person choice field it will allow you to search all users in the organisation base on email / first and second name. you don't need to create a list of users within SharePoint as PowerApps can use the active directory. 

  • Community Power Platform Member Profile Picture
    on at

    Yes, I'm aware of that. But the goal is to only have the ability to select a specific group of employees and all of them should be visible in the dropdown (without searching for their name).

  • C-Papa Profile Picture
    1,836 on at

    Ok, so you could collect the users from the Office365.users connector into a collection and filter the users based on your requirements, this assumes that one of the fields in the active directory contains the information you would like to filter against. you then set you items property of your dropdown to your collection column that you want to display. If you cannot filter people from AD using the existing fields you would need to either add them when creating the collection or store the groups in a database somewhere. 

  • Verified answer
    v-albai-msft Profile Picture
    on at

    Hi @Anonymous ,

    Do you mean Azure AD group? 

    If yes, two ways you can try to get all the members from a particular group.

    1. You can use Azure AD connector. Add a dropdown control and set its Items property to below formula:

    AzureAD.GetGroupMembers("cdd2bc5c-a5ac-4516-8ab9-740a2b8974a2").value.mail

    v-albai-msft_0-1622442702801.png

    If you want to show all the user name, you can use:

    AzureAD.GetGroupMembers("cdd2bc5c-a5ac-4516-8ab9-740a2b8974a2").value.displayName

    2. You can also use Office365Groups connector. Add a dropdown control and set its Items property to below formula:

     

    Office365Groups.ListGroupMembers("cdd2bc5c-a5ac-4516-8ab9-740a2b8974a2").value.mail

    If you want to show all the user name, you can use:

    Office365Groups.ListGroupMembers("cdd2bc5c-a5ac-4516-8ab9-740a2b8974a2").value.displayName

    v-albai-msft_1-1622442850722.png

    Notes:

    1. Add the Azure AD connector or Office365Groups connector first.

    2. Replace to your group ID. You can get the group ID from below "Object Id" property:

    v-albai-msft_3-1622442967736.png

     

     

    Best regards,

    Allen

     

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