Globus Connect Server Collection Set Owner
Description
The globus-connect-server collection set-owner command changes the owner of the mapped collection to the given identity. The current owner is displayed in the output of collection list command. This command may only be performed by the endpoint owner or endpoint administrator.
The new owner can be specified by using either the identity ID
(ex. 96fd727e-4cb4-48de-a54e-ac110a7eea5a
) or username (ex. foo@example.com
)
of the new owner’s Globus Auth identity.
Options
- -h, --help
-
Show help message and exit.
- --version
-
Show the version and exit.
- -F, --format "text"|"json"
-
Output format for this command. If the format is json, then the full response from the GCS Manager is displayed.
- --use-explicit-host IP_ADDRESS (new in 5.4.23)
-
IP address of the GCS node to use for this request. If not specified, any available GCS node in the endpoint will be used.
Example
In this example, the owner of collection 25762158-fa8c-4338-aae3-0daf4ae2f4b1 is set by username:
globus-connect-server collection set-owner 25762158-fa8c-4338-aae3-0daf4ae2f4b1 foo@example.com {'DATA_TYPE': 'collection_owner#1.0.0', 'identity_id': '96fd727e-4cb4-48de-a54e-ac110a7eea5a'} Message: Updated collection owner to 96fd727e-4cb4-48de-a54e-ac110a7eea5a (foo@example.com)
In this example, the owner of collection 25762158-fa8c-4338-aae3-0daf4ae2f4b1 is set by the new owner’s identity ID:
globus-connect-server collection set-owner 25762158-fa8c-4338-aae3-0daf4ae2f4b1 96fd727e-4cb4-48de-a54e-ac110a7eea5a {'DATA_TYPE': 'collection_owner#1.0.0', 'identity_id': '96fd727e-4cb4-48de-a54e-ac110a7eea5a'} Message: Updated collection owner to 96fd727e-4cb4-48de-a54e-ac110a7eea5a (foo@example.com)