Skip to content

Commit b8f090b

Browse files
committed
people picker transitive members
1 parent 1c940e7 commit b8f090b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/services/PeopleSearchService.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,9 @@ export default class SPPeopleSearchService {
195195
searchBody.queryParams["SharePointGroupID"] = groupId;
196196
}
197197

198-
// Check if users need to be searched in a specific Office365 Group
198+
// Check if users need to be searched in a specific Microsoft 365 Group, Security Group (incl. nested groups) or Distribution List
199199
else if(groupId && typeof(groupId) === 'string') {
200-
const graphUserRequestUrl = `/groups/${groupId}/members?$count=true&$search="displayName:${query}" OR "mail:${query}"`;
200+
const graphUserRequestUrl = `/groups/${groupId}/transitiveMembers?$count=true&$search="displayName:${query}" OR "mail:${query}"`;
201201
const graphClient = await this.context.msGraphClientFactory.getClient();
202202
const graphUserResponse = await graphClient.api(graphUserRequestUrl).header('ConsistencyLevel', 'eventual').get();
203203

0 commit comments

Comments
 (0)