I have an app that will be accessible to members of an O365 Group by default. Those members will also be able to grant access to additional users, which are being maintained in a SharePoint list. I'm trying to display both lists of users in one gallery, but can't quite get the data points to line up correctly. Here's what I've done so far:
I've converted the Group Members to have the same syntax as People in SharePoint, and then built a collection to add these users and a People column from another list.
OnStart
Set(
varProgramManagerMembers,
RenameColumns(
AddColumns(
ShowColumns(
Office365Groups.ListGroupMembers("LIST ID HERE").value,
"mail",
"displayName",
"jobTitle"),
"Claims", "i:0#.f|membership|" & ThisRecord.mail,
"Department", "",
"Picture",""),
"mail","Email",
"displayName", "DisplayName",
"jobTitle", "JobTitle"));
ClearCollect(colAllAppUsers,
varProgramManagerMembers,IdeaDashboardUsers);
I can set the item property of my gallery to colAllAppUsers, but it doesn't lump all the users together with the same properties like I'd expect, so I have to add labels and pull in both ThisItem.DisplayName AND ThisItem.AppUser.DisplayName. I can make this work by playing with visibility of the labels, but there has to be another way to convert them all to the same format, right? Please help! 🙂