URL structure
{orgGroupId} is the ID of an organisation and {userId} is the ID of a Covata user account.
Supported methods and overview
GET- retrieves the total number of file objects/Secure Objects currently owned by a Covata user (specified byuserId) within an organisation (specified byorgGroupId).
This method takes no parameters.
Detailed description
This API endpoint retrieves the total number of file objects/Secure Objects currently owned by a Covata user (specified byuserId) within an organisation (specified by orgGroupId).
A Covata user’s ID can be obtained by calling the GET method of the <access-service>/api/v1/organisations/{orgGroupId}/users API endpoint, which retrieves a list of information associated with existing users in an organisation (specified by orgGroupId), which can be filtered through a variety of ‘search’ criteria.
This endpoint is useful for determining the number of file objects that a Covata user owns, before transferring the ownership of these items over to another user.
Although this endpoint indicates items in its URL, calling it only returns the total number of file objects (i.e. folders/collections are not counted). However, when actually transferring the ownership of items from one Covata user to another, all of the user’s items (i.e. all their file objects and folders) are transferred.
Supported roles and conditions
This API endpoint supports requests utilising Covata user accounts with the following roles (as described in the Organisation Administrator’s Guide) and conditions:- Organisation administrator - when this user is a member of the organisation specified by
{orgGroupId}in the request’s URL.
Required headers
The appropriate access token as theBearer token:
Authorisation: Bearer eyJhbGciOiJSUzI1NiJ9.eyJleHAiOjE0NjcwMTY2NjYsInVzZXJfbmFtZSI6ImFsZXgub...
Returns
A JSON-formatted response containing the following members:-
count - The total number of file objects currently owned by the Covata user specified by
userIdin this endpoint’s URL.
Example (response):

