通过 objectids 获取多个用户/组 [英] Getting multiple users/groups by objectids

查看:12
本文介绍了通过 objectids 获取多个用户/组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个用户/组的 objectid 列表,我想将它们解析为显示名称和个人资料照片.我不想为每个 objectid 发出单独的请求,而是想对它们进行批处理并在一个响应中获取所有结果.有可用的 API 吗?从我所做的搜索中,我找不到类似的东西.如果不存在这样的 API,是否有任何提示可以提高效率?

I have a list of objectids of users/groups, and I would like to resolve them to display names and profile photos. Instead of making a separate request for each objectid, I would like to batch them and get all the results in one response. Is there an API available for that? From the searched that I've done, I couldn't find anything like that. If such an API doesn't exists, are there any tips to make this efficient?

谢谢,波阿斯

推荐答案

这是我们将很快添加的功能(一个名为 getById 的新操作),它允许您指定最多 1000 个要从 Microsoft 获取的对象图形(虽然现在仅限于目录对象).这类似于 Azure AD Graph https://msdn.microsoft.com/en-us/library/azure/ad/graph/api/functions-and-actions#getObjectsByObjectIds.

This is a capability that we will be adding very soon (a new action called getById), that will allow you to specify up to 1000 objects to fetch from Microsoft Graph (although restricted for now to directory objects). This is similar to functionality that is currently supported in Azure AD Graph https://msdn.microsoft.com/en-us/library/azure/ad/graph/api/functions-and-actions#getObjectsByObjectIds.

将在此新操作可用时更新此线程.

Will update this thread when this new action is available.

希望这会有所帮助,

这篇关于通过 objectids 获取多个用户/组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆