Skip to content

Commit 59ddcf9

Browse files
Filtering out non=person entities in person card organization (#673)
1 parent 8627c45 commit 59ddcf9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/mgt/src/components/mgt-person-card/sections/mgt-person-card-organization/graph.organization.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,6 @@ export async function getManager(graph: IGraph, userId: string): Promise<IOrgMem
6969
* @returns {Promise<IOrgMember[]>}
7070
*/
7171
export async function getCoworkers(graph: IGraph, userId: string): Promise<IOrgMember[]> {
72-
const response = await graph.api(`users/${userId}/people`).get();
72+
const response = await graph.api(`users/${userId}/people?$filter=personType/class eq 'Person'`).get();
7373
return response.value;
7474
}

0 commit comments

Comments
 (0)