Setting the Workspace for a User

You can use the set workspace command to change the Workspace currently active in MQL so that the Workspace of some other user (person, group, role, or association) is visible. As of version 10.6 and higher, you do not need to set a workspace because the business administrator can refer to any user's workspace objects by appending 'user X' to the name.

  1. Use this syntax to set a workspace:

    set workspace user USERNAME

    where USERNAME is the name of a person, group, role, or association.

    This command affects the behavior of all commands to which Workspace objects are applicable, including:

    • All commands specific to Workspace objects (for example, add/modify/delete filter)
    • expand bus (affects what filters are used to control output)

    Note: The set context user Username changes the context to that of USERNAME regardless of an earlier invocation of set workspace.

    When users (other than Business Administrators) set their Workspace to that of a group, role, or association, they cannot use commands that modify the Workspace, that is, the add, modify, and delete commands for Workspace objects. This restriction enforces the rule that only Business Administrators are permitted to change the Workspace of a group, role, or association.

  2. Execute the needed commands.