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
-
Checks to see that the node is a session.
-
Prompts the user to save if the session is open in ArcMap.
-
Finds a list of users that have the roles necessary to access the current node.
-
Gets the value of the DefaultUser parameter.
-
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.
-
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.
-
Attempts to transfer ownership of the session to the selected user.
-
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).