API Documentation
Toggle TOC panel
<access-service>/api/v1/organisations/{orgId}/groups/{groupId}/users

URL structure

1 https://access-service.xy-company.com/api/v1/organisations/{orgId}/groups/{groupId}/users

where {orgId} is the ID of an organisation and {groupId} is the ID of one of this organisation's clearances.

Supported methods and overview

  • GET - retrieves a list of information for all Cocoon Data users who are currently members of a clearance (specified by groupId) in an organisation (specified by orgId).

Note: This method takes no parameters.

Detailed description

This API endpoint retrieves a list of information for all Cocoon Data users who are currently members of a clearance (specified by groupId) in an organisation (specified by orgId).

A clearance's ID can be obtained by calling the GET method of the <access-service>/api/v1/organisations/{orgId}/groups API endpoint, which retrieves a list of information for all clearances in an organisation (specified by orgId).

Supported roles and conditions

This API endpoint supports requests utilizing Cocoon Data user accounts with the following roles (as described in the Organisation Administrator's Guide) and conditions:

The Cocoon Data Platform's resources available to one of these Cocoon Data users (above) is determined by the access token submitted in the header of requests to this endpoint.

Required headers

The appropriate access token as the Bearer token:

  • Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJleHAiOjE0NjcwMTY2NjYsInVzZXJfbmFtZSI6ImFsZXgub...

Returns

A JSON-formatted response containing the following members:

  • items - .
  • email - .
  • firstName - .
  • lastName - .
  • mfaEnabled - .
  • id - .
  • accountType - .
  • organisations - .
  • count - .
  • offset - .
    Example (response):
    {
    "items": [{
    "email": "alex.originator@xy-company.com",
    "firstName": "Alex",
    "lastName": "Originator",
    "mfaEnabled": false,
    "id": "760757111507689472",
    "accountType": {
    "i18n": {
    "code": "server.useraccounttype.local",
    "arguments": []
    },
    "value": "LOCAL"
    },
    "organisations": [{
    "id": "760756644367081472",
    "name": "XY Company",
    "addressBookEnabled": false,
    "watermarkingEnabled": false,
    "plan": {
    "id": "760757068528656384",
    "name": "Staff Originators",
    "description": "Staff members with the Originator role.",
    "quota": 10240,
    "default": true
    },
    "adminEmail": "",
    "organisationAlias": null,
    "userMessage": null,
    "supportUrl": "",
    "companyName": null,
    "legalUrl": null,
    "webappHelpUrl": null,
    "orgAdminHelpUrl": null,
    "privacyUrl": "",
    "securityRoles": [{
    "i18n": {
    "code": "db.securityroles.organisationadmin",
    "arguments": []
    },
    "value": "ROLE_ORGANISATION_ADMIN"
    }, {
    "i18n": {
    "code": "db.securityroles.originator",
    "arguments": []
    },
    "value": "ROLE_ORIGINATOR"
    }]
    }]
    }, {
    "email": "chris.collaborator@xy-company.com",
    "firstName": null,
    "lastName": null,
    "mfaEnabled": false,
    "id": "760765715686137856",
    "accountType": {
    "i18n": {
    "code": "server.useraccounttype.local",
    "arguments": []
    },
    "value": "LOCAL"
    },
    "organisations": [{
    "id": "760756644367081472",
    "name": "XY Company",
    "addressBookEnabled": false,
    "watermarkingEnabled": false,
    "plan": null,
    "adminEmail": "",
    "organisationAlias": null,
    "userMessage": null,
    "supportUrl": "",
    "companyName": null,
    "legalUrl": null,
    "webappHelpUrl": null,
    "orgAdminHelpUrl": null,
    "privacyUrl": "",
    "securityRoles": [{
    "i18n": {
    "code": "db.securityroles.collaborator",
    "arguments": []
    },
    "value": "ROLE_COLLABORATOR"
    }]
    }]
    }, {
    "email": "org.administrator@xy-company.com",
    "firstName": "Org",
    "lastName": "Administrator",
    "mfaEnabled": false,
    "id": "760756646413901824",
    "accountType": {
    "i18n": {
    "code": "server.useraccounttype.local",
    "arguments": []
    },
    "value": "LOCAL"
    },
    "organisations": [{
    "id": "760756644367081472",
    "name": "XY Company",
    "addressBookEnabled": false,
    "watermarkingEnabled": false,
    "plan": null,
    "adminEmail": "",
    "organisationAlias": null,
    "userMessage": null,
    "supportUrl": "",
    "companyName": null,
    "legalUrl": null,
    "webappHelpUrl": null,
    "orgAdminHelpUrl": null,
    "privacyUrl": "",
    "securityRoles": [{
    "i18n": {
    "code": "db.securityroles.organisationadmin",
    "arguments": []
    },
    "value": "ROLE_ORGANISATION_ADMIN"
    }]
    }]
    }],
    "count": "3",
    "offset": "0"
    }