Skip to main content

parse_groups_xml

Function parse_groups_xml 

Source
pub fn parse_groups_xml(content: &[u8]) -> Result<Vec<GppLocalGroup>, GpoError>
Expand description

Parses UTF-8 Group Policy Preferences Groups.xml into local-group directives. Empty input represents no directives; malformed documents return an error.

MS-GPPREF sections 2.2.1.1 and 2.2.1.11.3 define disabled on the outer Groups and on Group/Properties. Group disabled is additionally tolerated for compatibility with input accepted by the initial parser. Disabled items are omitted, including when their unused membership attributes are incomplete.

Item-Level Targeting is detected, not evaluated. A future applicability layer must evaluate it before applying membership; targeted items cannot be applied globally. Unknown subtrees (including User and filter contents) are ignored.