Associates a group with a particular role.
xsd:complexType
None.
Attribute | Type | Required | Description | Possible Values |
---|---|---|---|---|
name | xsd:string |
Yes | Specifies users in the form of "domain\groupname" or "groupname". | string |
memberOf | xsd:string |
Yes | Specifies the role to be associated with the group. | string |
<xsd:element name="group">
<xsd:complexType>
<xsd:attribute name="name" type="xsd:string" use="required"></xsd:attribute>
<xsd:attribute name="memberOf" type="xsd:string" use="required"></xsd:attribute>
</xsd:complexType>
</xsd:element>
Users can be assigned roles through grouping that can be managed externally, without requiring a form update. Groups can be set up through the Active Directory directory service. Permissions specifying who can access the membership information can be set for groups.
Note This item is not supported when the Disable Service Pack features option on the Advanced tab of the Options dialog box in InfoPath is selected or when Microsoft Office 2003 Editions Service Pack 1 or later is not installed. Any form defined by a form definition file (.xsf) that includes this item cannot be opened in InfoPath when service pack features are disabled or unavailable.
The following is an example of the group element:
<xsf:roles initiator="A" default="C" hideStatusBarDisplay="yes">
<xsf:role name="A"/>
<xsf:role name="B"/>
<xsf:role name="C"/>
<xsf:membership>
<xsf:getUserNameFromData dataObject="catalog"
select="/dfs:myFields/dfs:dataFields/d:UserA" memberOf="B"/>
<xsf:userName name="Domain\username1" memberOf="A"/>
<xsf:userName name="Domain\username2" memberOf="B"/>
<xsf:group name="Domain\username3" memberOf="C"/>
</xsf:membership>
</xsf:roles>