通过图谱API公开用户时限制用户属性

问题描述

当前要求是通过图形API公开一些用户属性

例如:https://graph.microsoft.com/beta/users/{id}

它应该仅返回一些属性。可以在查询级别对其进行过滤。该查询由客户端执行。不想向他们公开所有用户属性
在天蓝色级别控制用户属性解决方案是什么

谢谢 穆拉利

解决方法

当前,我们无法从ms级图的天蓝色级别限制用户属性。请举起How to calculate the average rgb color values of a bitmap

在MS Graph中,您可以使用select语句仅返回一些选定的属性。

例如:

https://graph.microsoft.com/beta/users/userid?$select=displayName,givenName