Dynamically Populating the Organization Field

If the user store that manages includes organizations, the default Create User task includes an Organization field. An administrator must search for and select the appropriate organization before creating a user profile.
cim1265
If the user store that
Identity Manager
manages includes organizations, the default Create User task includes an Organization field. An administrator must search for and select the appropriate organization before creating a user profile.
To simplify the Create User task, you can configure
Identity Manager
to populate the Organization field dynamically, based on the administrator who is executing the task. In this case, the administrator does not have to specify an organization. The user is created in the organization where the administrator's profile exists. For example, if an administrator, whose profile exists in the Employees organization, creates a user profile for a new hire,
Identity Manager
creates the new profile in the Employees organization. If an administrator in the Suppliers organization uses the same Create User task, the profile for the new user that the second administrator creates would exist in the Suppliers organization.
Configure a Dynamic Organization Field
When you configure a dynamic organization field for the Create User task,
Identity Manager
creates new users in the organization where the profile for the administrator who is creating the user exists.
To configure a dynamic organization field
  1. In the User Console, go to Roles and Tasks, Admin Tasks, Modify Admin Task.
  2. Search for and select the Create User task.
  3. On the Tabs tab, click the edit icon to edit the Profile tab.
  4. In the Screen field, click Browse to display a list of screens to edit.
  5. Select the Create User Profile screen and click Edit.
  6. Locate the Organization and click the edit icon to edit its properties.
  7. Set Style to Hidden.
  8. In the Default JavaScript field, enter the following:
    function defaultValue(FieldContext) { return FieldContext.getAdministrator().getOrg(null).getUniqueName(); }
  9. Click Apply.
  10. Click the left arrow next to Field Properties to return to the screen.