New answers tagged

2 votes
Accepted

What is the best way to shuffle the results that come back from a Graph query?

Try using _.shuffle function available in lodash library. Use code like this: var result = await client.api('groups/' + this.properties.groupGUID + '/members').get(); const graphResponse: any = ...
  • 30.6k
2 votes
Accepted

Trying to get all the members of an M365 group using SPFx

You can get graph client using SPFx context object Below are sample code to get list of member from Office 365 group. public async ListUserInGroup(guid: string): Promise<any> { const { ...

Top 50 recent answers are included