CreateOrganizationFormHandler
has the following properties, which are used to set roles in the new business unit:
Property | Description |
---|---|
| This property is set to true by default so that relative roles are created for the new organization. |
| This property is set to true by default so that the list of relative roles specified in |
| Sets the names of the relative roles of the new business unit For example, in Motorprise, these roles are admin, approver, buyer. |
| Specifies the relative roles for the user who is creating the new business unit. In Motorprise, the user is assigned an admin role for that business unit. |
| The ID of the user to whom the relative roles listed in |
The functionNames
property of the CreateOrganizationFormHandler
is used to set the names of the roles of the new organization. In Motorprise, these roles are admin, approver and buyer. This means that when a company admin creates a new business unit in Motorprise, three relative roles are created with these names:
Buyer: a member of the buying organization who makes purchases using the application
Approver: member of buying organization who can authorize another person’s purchase
Admin: member of the buying organization who can create and modify other users of the store
These roles fit the business model for Motorprise. You could create different roles for your business. See the section on CreateOrganizationFormHandler
for further information.
The assignableFunctionNames
property is a list of roles to assign the user specified in the userId
property. These functions are used to extract a relative role from an organization and then assign it to the user. In this case, the user is assigned the role of admin
.