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

Community site session details

Session Id : +FTc4k85GsAka8gA1+7EmK
Power Apps - Building Power Apps
Answered

Select office 365 group or user in combo box.

Like (0) ShareShare
ReportReport
Posted on 10 Feb 2021 06:37:01 by

In my app user can select any user from combo box and assign tasks to the users. I am using "Office365Users.SearchUser" to show list of users in the combo box but I can not select groups in the combo box. Is it possible using the same connector or is there some other way?

I have the same question (0)
  • CU-18081211-6 Profile Picture
    9,266 Moderator on 10 Feb 2021 at 07:06:33
    Re: Select office 365 group or user in combo box.

    Hi @Anonymous ,

    Do you need all the groups in the tenant ? Well i'm affraid that this cannot be achieved with the actual connectors.

    On the other hand there are 2 options to achieve limited number of groups:

    1. Office365Groups connector - ListOwnedGroups_V3 or

    2. Azure AD connect - Get groups of a user (V2)

    As the name say the first helps you to get infos about all the groups that current user own or belong to, as per second helps you to get infos about all the groups that a specific user own or belong to. 

     

    Hope it helps !

  • Community Power Platform Member Profile Picture
    on 11 Feb 2021 at 12:23:23
    Re: Select office 365 group or user in combo box.

    Hi @gabibalaban 
    But the requirement is that the user should be able to select a group or user in the same combo box. I can not have two separate input for group and user. 

  • Verified answer
    CU-18081211-6 Profile Picture
    9,266 Moderator on 11 Feb 2021 at 16:39:13
    Re: Select office 365 group or user in combo box.

    @Anonymous ,

    This is what was crosses my mind:

    ClearCollect(users,ShowColumns(Office365Users.SearchUserV2({searchTerm:""}).value,"DisplayName","Mail"));
    Collect(users,RenameColumns(ShowColumns(Office365Groups.ListOwnedGroupsV3().value,"displayName","mail"),"displayName","DisplayName","mail","Mail"))

    In this way you will have into a collection all Users and the Groups (that the current user is member/owner of) with 2 columns ...DisplayName and Mail. I hope that this is enough info.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 686 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 433 Super User 2025 Season 2

#3
wolenberg_ Profile Picture

wolenberg_ 266 Moderator

Last 30 days Overall leaderboard