Use this option when two or more AdminRoles are assigned to a user. The value of this option should be the name of an organization. This value specifies that the returned names should consist only of names that are available to organizations that are controlled by an AdminRole. The AdminRole must control the scopingOrg organization and is assigned to the logged-in user.
This option is typically used to ensure that when a user is creating or editing another user, the member organization of the user being edited determines which names (for example, Resourcenames) are available for assignment.
Set this attribute under these conditions:
The specified user is assigned more than one AdminRole
You want to ensure that when the administrator is creating or editing a user, the member organization of the user being created or edited determines which object names of the requested type are available for assignment.
For example, under these circumstances:
the administrator were assigned both the Engineering AdminRole and Marketing AdminRole
the administrator is editing a user who is a member of the Engineering organization
the resources available for assigning to that user should be limited to the resources available to the organization(s) controlled by the Engineering AdminRole.
To implement the behavior described above, add the scopingOrg attribute to the waveset.resources field in the User form.
Reference the value of the current organization as follows:
<Field name=’waveset.resources’> <Display class=’MultiSelect’> <Property name=’title’ value=’_FM_PRIVATE_RESOURCES’/> <Property name=’availableTitle’ value=’_FM_AVAILABLE_RESOURCES’/> <Property name=’selectedTitle’ value=’_FM_SELECTED_RESOURCES’/> <Property name=’allowedValues’> <invoke class=’com.waveset.ui.FormUtil’ name=’getUnassignedResources’> <ref>:display.session</ref> <map> <s>currentRoles</s> <ref>waveset.roles</ref> <s>currentResourceGroups</s> <ref>waveset.applications</ref> <s>current</s> <ref>waveset.original.resources</ref> <s>scopingOrg</s> <ref>waveset.organization</ref> </map> </invoke> </Property> </Display> </Field> |