Share a Session with a User
This command sets the access permission (either WATCH, EDIT, RECORD, OWN, or custom permission ID) of the specified session with the specified user.
Authorizations: All
Request
shareSessionWithUser username permissionId sessionId |
Parameters
Parameter | Description/Values |
---|---|
username | The unique name specified for the HMP user.
|
permissionId | The access permission to assign to this user:
|
sessionId | The ID of a HMP session. |
Result
Success
OK |
Error
Error | Description |
---|---|
| Calling shareSessionWithUser requires 3 parameters. |
| The sessionId provided must be a UUID. |
| The 'permission' passed in was not one of the expected values. |
| An internal error occurred while searching for user 'username'. |
| The user with UUID 'username' was not found. |
| Make sure a role is assigned to the user or to at least one of the user's groups. |
| The session with UUID 'sessionId ' was not found. |
| User is not allowed to share to this permission ID. Ex.: User has the WATCH permission, but is trying to share to the OWN level. |
Examples
This example uses a default HMP access permission:
|
This example uses a custom access permission.
|