CentralCSP
APIWebsite Access

List website access

Lists who can reach this website: members granted a role directly, and groups granted a role. Group entries carry their member count and a short preview of members, so a client does not need a second call per row. Workspace owners and admins always have full access and are not listed here.

Requires the admin role on the website.

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

Authorization

AuthorizationBearer <token>

An OpenID Connect access token issued by Keycloak, acting as the signed-in user.

In: header

Path Parameters

workspaceId*string
websiteId*string

Response Body

application/json

curl -X GET "https://api-next.centralcsp.com/v1/workspaces/string/websites/string/access"
{  "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"    }  ]}