大网数据广告活动
域与目录服务

Enumerating Groups That Contain Many Members

· 52CE 我爱测

Learn about enumerating Azure Active Directory groups that contain many members by using the incremental retrieval of data (range retrieval).

The members of a group are stored in a multi-value attribute called member. The member attribute can contain a large number of values. Enumerating members can be inefficient when the number of values in a multi-valued attribute becomes large. The server will also limit the maximum number of values that can be retrieved in a single query. This means that if a group may have more members than can be supplied by the server, the only way to enumerate all members is to use incremental retrieval of data, known as range retrieval.

Range retrieval involves requesting a limited number of attribute values in a single query. The number of values requested must be less than, or equal to, the maximum number of values supported by the server. To reduce the number of times the query must contact the server, the number of values requested should be as close, as possible, to this maximum. To enable an application to work correctly with all servers, a maximum number of 1000 should be used.

The version of the server that supplies the requested data determines the maximum number of values that can be retrieved in a single query. The following table lists the server version and the maximum number of values that can be retrieved in a single query.

Server operating system version Maximum values retrieved
Windows 2000 1000
Windows Server 2003 1500

For more information about retrieving ranges of attribute values with ADSI, see Attribute Range Retrieval.

For more information about retrieving ranges of attribute values with System.DirectoryServices, see Enumerating Members in a Large Group.

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 05/31/2018
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。