API Documentation

Workspace.GetUsers

Workspace.GetUsers

Returns a list (array) of all users for the specified workspace.

Parameters and required information

Here's a list of all the parameters you'll need to pass to the Workspace.GetUsers method. All of the parameters are required unless otherwise noted.

SessionKey
The session key obtained from User.Login
WorkspaceID
The id of a workspace obtained from Workspace.GetAll

Return Codes

Success

Status: success
Returns a list of all users for the current workspace.
Status: fail
The call was not successful. Either the session has expired or the XML was not formatted correctly.

Error

5002: Authentication Failure
No active session exists with this session key and developer account id. The user session has expired and the user has to to log on again.
101: The WORKSPACEID attribute is required in the WORSKPACE.GETUSERS function
The WORKSPACEID was not passed along.

HTTP POST

<?xml version="1.0" encoding="utf-8"?>  
<request>  
	<sessionkey>string</sessionkey>
	<workspaceid>string</workspaceid>     
</request>  
<?xml version="1.0" encoding="utf-8"?>
<mediasilo_response method="Workspace.GetUsers" status="success">
	<user>
		<id>integer</id>
		<username>string</username>
		<firstname>string</firstname>
		<lastname>string</lastname>
	</user>
</mediasilo_response>