Change Session Owner

Allows the user to assign the session to another user.

Enabled

  • The user must be an Administrator or the current owner.

  • MMSessionManager must be the current extension.

  • The node passed to this subtask is a Session node.

  • Determines if there are any other users that have a role that can access the node in its current state.

Execute

  1. Checks to see that the node is a session.

  2. Prompts the user to save if the session is open in ArcMap.

  3. Finds a list of users that have the roles necessary to access the current node.

  4. Gets the value of the DefaultUser parameter.

  5. If the AutoChangeOwner value is set to 1 (True), selects the DefaultUser and assigns the node. If no DefaultUser value is set, allows the user to select from a list of valid users.

  6. If the AutoChangeOwner value is set to 0 (False), selects the DefaultUser and allows the user to change the selection from a list of valid users. If no DefaultUser value is set, allows the user to select from a list of valid users.

  7. Attempts to transfer ownership of the session to the selected user.

  8. Closes the session if it is open in ArcMap.

Parameters

  • DefaultUser: takes a user name as a value. The default value is null.

  • AutoChangeOwner: takes a value of 0 or 1. 0=False, prompt the user to select owner; 1=True, select default owner without prompt. The default value is 0 (False).

QR Code is a registered trademark of DENSO WAVE INCORPORATED in Japan and other countries.

Was this helpful?