In Motorprise, Company administrators create business units and roles for their company. We used the atg/projects/b2bstore/userdirectory/CreateOrganizationFormHandler
to:
create a new business unit
set its name and parent organization
create and assign roles, such as buyer, approver, and admin, for that business unit
assign an admin role for that business unit to the user who creates it
In Motorprise, when an admin creates a new business unit, CreateOrganizationFormHandler
does two things:
creates relative roles of buyer, approver, and admin for that business unit
assigns the role of admin to the user creating the business unit