184.108.40.206.3 SamrGetMembersInGroup (Opnum 25)
The SamrGetMembersInGroup method reads the members of a group.
long SamrGetMembersInGroup( [in] SAMPR_HANDLE GroupHandle, [out] PSAMPR_GET_MEMBERS_BUFFER* Members );
Members: A structure containing an array of RIDs, as well as an array of attribute values.
This protocol asks the RPC runtime, via the strict_context_handle attribute, to reject the use of context handles created by a method of a different RPC interface than this one, as specified in [MS-RPCE] section 3.
Upon receiving this message, the server MUST process the data from the message subject to the following constraints:
The server MUST return an error if GroupHandle.HandleType is not equal to "Group".
GroupHandle.GrantedAccess MUST have the required access specified in section 220.127.116.11. Otherwise, the server MUST return STATUS_ACCESS_DENIED.
Let G be the group object referenced by GroupHandle.Object.
Let M be the set of values of G's member attribute such that the groupType of the object referenced by each value is GROUP_TYPE_SECURITY_ACCOUNT or GROUP_TYPE_SECURITY_UNIVERSAL. Objects with groupType GROUP_TYPE_SECURITY_RESOURCE are ignored.
If the domain prefix of the objectSid attribute of any object in set M is different from the domain prefix of G's objectSid, the server SHOULD<58> return STATUS_DS_GLOBAL_CANT_HAVE_CROSSDOMAIN_MEMBER.
Members.MemberCount MUST be equal to the number of values in M.
The Members.Members array MUST contain the RelativeIds of the objectSid attribute values for all objects in set M.
For each element in the Members.Members array, see section 18.104.22.168.7 for a message processing specification of each element in the Members.Attributes array.