Microsoft Graph V1使用列表查找字段获取成员

时间:2019-09-18 09:45:45

标签: sharepoint microsoft-graph

我在SharePoint列表中有一个查找字段,该字段为Microsoft内部存在的用户提供(查找)ID。 proxy_pass http://backend-geodatenportal/kommunalportal$1$is_args$args; std::mutex m; std::condition_variable c; // Only ever read or write shared_state when the mutex is locked. // Otherwise race conditions create a deadlock. bool shared_state = false; // Waiting thread. void wait() { std::unique_lock<std::mutex> l(m); while(!shared_state) // Also handles spurious wake ups. c.wait(l); // shared_state is true, mutex is locked. } // Notifying thread. void wait() { { std::unique_lock<std::mutex> l(m); shared_state = true; } c.notify_one(); } 类似。我希望能够通过Microsoft Graph使用该id来检索关联的成员。

我不知道SharePoint如何使用该ID来查找用户。

100

1 个答案:

答案 0 :(得分:2)

查找字段中使用的ID来自SharePoint用户列表。 SharePoint用户列表不在Microsoft Graph中,而是您需要使用SharePoint REST API来获取用户信息:

https://contoso.sharepoint.com/sites/sitename/_api/web/GetUserById(lookupId)

此调用应返回UPN,您可以使用该UPN获得Microsoft Graph用户(如果需要)。

https://docs.microsoft.com/en-us/previous-versions/office/developer/sharepoint-rest-reference/dn531432(v=office.15)?redirectedfrom=MSDN#user-resource