CentralCSP
APIWebsite Access

List website access

Lists the members and groups granted a role on this website. Workspace owners and admins always have full access and are not listed.

Requires the admin role on the website.

GET
/v1/workspaces/{workspaceId}/websites/{websiteId}/access

Authorization

headerAuthorizationBearer <JWT>

An OpenID Connect access token from signing in to CentralCSP, acting as the signed-in user.

Path Parameters

workspaceId*string

The workspace's id.

websiteId*string

The website's id.

Response Body

Who can reach the website, and with which role.

application/json
  1. response
members*array<>

Members granted a role directly.

groups*array<>

Groups granted a role. Everyone in the group has that role on the website.

Example Request
curl -X GET 'https://api.centralcsp.com/v1/workspaces/01936b7a-6f2e-7c31-9a4d-2f8e1c5b7d90/websites/01936b7a-6f2e-7c31-9a4d-2f8e1c5b7d90/access'
Example Response
{  "members": [    {      "id": "string",      "websiteId": "string",      "memberId": "string",      "userId": "string",      "email": "string",      "firstName": "string",      "lastName": "string",      "picture": "string",      "role": "viewer",      "createdAt": "2019-08-24T14:15:22Z"    }  ],  "groups": [    {      "id": "string",      "websiteId": "string",      "groupId": "string",      "groupName": "string",      "role": "viewer",      "memberCount": 0,      "memberPreview": [        {          "userId": "string",          "picture": "string"        }      ],      "createdAt": "2019-08-24T14:15:22Z"    }  ]}