API Documentation
Toggle TOC panel
<access-service>/api/v1/userwhitelist/{objectId}

URL structure

1 https://access-service.xy-company.com/api/v1/userwhitelist/{objectId}

where {objectId} is the ID of a user whitelist rule.

Supported methods and overview

  • GET ( Deprecated ) - retrieves information about an existing user whitelist rule (specified by objectId) in any organisation, available to SafeShare administrators only.

Notes:

Detailed description

This API endpoint retrieves information about an existing user whitelist rule (specified by objectId) in any organisation, available to SafeShare administrators only. This ID can be obtained from a GET method to the <access-service>/api/v1/organisations/{orgId}/userwhitelist API endpoint, which retrieves a list of information for all current user whitelist within an organisation (specified by orgId).
Tip: All information returned in the response to this API endpoint is also returned in the response from a GET method call to the <access-service>/api/v1/organisations/{orgId}/userwhitelist endpoint. Therefore, if you do not already have a user whitelist rule's ID, there is no need to call the GET method on this API endpoint.

Supported roles

This API endpoint supports the following Cocoon Data user roles (as described in the SafeShare Administrator's Guide):

The Cocoon Data Platform's resources available to a Cocoon Data user meeting the criteria 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:

  • id - The ID of the user whitelist rule, which should match {objectId} in the request's URL.
  • pattern - The domain or email address of this user whitelist rule.
  • description - The description of this user whitelist rule.
    Example (response):
    {
    "id": "765456269464346624",
    "pattern": "xy-company.com",
    "description": "XY Company staff"
    }