gor*_*ieb 2 azure-active-directory azure-ad-graph-api microsoft-graph-sdks microsoft-graph-api
根据https://docs.microsoft.com/en-us/graph/api/resources/groups-overview?view=graph-rest-1.0上的在线文档,有四个 AAD 组:Office365、安全性、电子邮件-启用的安全性和分发。
我正在使用以下内容列出组:
graphGroupsPages = await graphServiceClient.Groups
.Request()
//.Filter(????) <= if yes, what should it be?
.GetAsync();
Run Code Online (Sandbox Code Playgroud)
我已经看到了如何列出 Office365(统一)组的示例。
如何仅列出安全组?
根据文档,您应该列出mailEnabled错误和securityEnabled正确的组。
var graphGroupsPages = await graphServiceClient.Groups.Request().Filter("mailEnabled eq false and securityEnabled eq true").GetAsync();
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
614 次 |
| 最近记录: |