File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -195,9 +195,9 @@ export default class SPPeopleSearchService {
195
195
searchBody . queryParams [ "SharePointGroupID" ] = groupId ;
196
196
}
197
197
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
199
199
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 } "` ;
201
201
const graphClient = await this . context . msGraphClientFactory . getClient ( ) ;
202
202
const graphUserResponse = await graphClient . api ( graphUserRequestUrl ) . header ( 'ConsistencyLevel' , 'eventual' ) . get ( ) ;
203
203
You can’t perform that action at this time.
0 commit comments