Hi Dheemanth Reddy Gangumalla,
Thank you for reaching out!
As per the document it is not mentioned how relevant people works.
Relevance is determined by the user’s communication and collaboration patterns and business relationships. People can be local contacts, contacts from social networking or from an organization’s directory, and people from recent communications (such as email and Skype).
To get the relevance score of 2 users as each person/user is assigned a relevance score. A higher relevance score corresponds to a more relevant result. The score reflects the person’s importance within the user’s network.
To retrieve relevant people, you can use the following endpoint:
GET https://graph.microsoft.com/v1.0/me/people
GET https://graph.microsoft.com/v1.0/users/{id|userPrincipalName}/people
Application requires the "People.Read.All
" permission.
In the response, you’ll find a collection of “scoredEmailAddresses
” each containing an email address and its associated relevance score.
Document reference: https://learn.microsoft.com/en-us/graph/api/user-list-people?view=graph-rest-1.0&tabs=http
Hope this helps.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".