MemberRegistrationAttributes XML and DTD files

The MemberRegistrationAttributes.xml configuration file specifies attributes that can automatically be assigned to users and organizations during user and organization registration and some authentication scenarios. This file follows the format that is defined by the MemberRegistrationAttributes.dtd file.

Both the DTD and XML files are in the workspace_dir/WC/xml/member directory. This file might be overwritten when a store is published, however a backup copy is saved in the same directory.

This file is divided into four main sections:


UserRoles

The UserRoles section contains User nodes. The role assignment algorithm iterates through the list of User nodes, and returns the first one that matches. This process is based on the following rules:

If all of the preceding criteria are satisfied by the current registration scenario, roles are automatically assigned to the user as specified in the role subelements. Each role element consists of the following items:

An example for UserRoles:

In this example, WebSphere Commerce scans down the list of User nodes until it finds one that matches. The matching is determined by the following rules:

After WebSphere Commerce locates a matching role group, it attempts to assign the roles from that group. In this case, there are two roles that are defined in the group. Both are registered customer roles to be applied at the organization that owns the store to which the user is registering. The roles are qualified by the ancestor of the store (meaning that WebSphere Commerce only applies the role if the store is somewhere under the DN specified).


OrganizationRoles

The OrganizationRoles section is similar to the user roles section, except that this is where the roles for new organizations are defined. One difference pertains to the registrationType attribute of the Organization element. It is defined as follows:

Another difference is that the Role element only requires the name attribute to be defined.

An example for OrganizationRoles:

This example shows that if an organization that matches on the outer criteria (registrationType, memberAncestor, and storeAncestor) is created, then all of the roles listed are created for that organization.


BusinessEntities

The BusinessEntities section follows the same structure as the OrganizationRoles section and is used to list the organizations that act as business entities in the system. Business entities are organizational entities that can have business accounts.

An example for BusinessEntities:

When creating an organization, the SetBusinessEntityCmd task command marks the organization as a business entity if it satisfies the criteria specified in the BusinessEntities section. The example specifies that any organization created under Supplier Organization is to be marked as a business entity.

Note: The BusinessEntities section does not define roles.


RegistrationParents

The last section is the RegistrationParents section. This is where WebSphere Commerce defines the parent organization for new users and organizations. Although many of the WebSphere Commerce commands still allow the programmatic assignment of parent, certain business models require that the parent be fixed. If so, WebSphere Commerce fixes the parents in this file.

An example for RegistrationParents:


Related concepts
Users
Member groups
Roles
Membership hierarchy
Member subsystem
Membership profile management
Range-based customer registration information
Member subsystem roles


Related tasks
Defining custom attributes for member URLs
Enable single sign-on