APIWebsite Access
Grant a group access
Gives a group a role on this website, replacing the role it had. Everyone in the group gets that role, including members added later.
Requires the admin role on the website.
PUT
header
AuthorizationBearer <JWT>An OpenID Connect access token from signing in to CentralCSP, acting as the signed-in user.
workspaceId*stringThe workspace's id.
websiteId*stringThe website's id.
groupId*stringThe group the grant is for.
application/json- body
The role to grant.
role*WebsiteRoleWhat someone may do with a website. viewer reads reports and settings. analyst also decides on scripts under review. manager also changes the website's configuration. admin also manages access and deletes the website.
Value in
"viewer""analyst""manager""admin"The group's role on the website is set.
Example Request
curl -X PUT 'https://api.centralcsp.com/v1/workspaces/01936b7a-6f2e-7c31-9a4d-2f8e1c5b7d90/websites/01936b7a-6f2e-7c31-9a4d-2f8e1c5b7d90/access/groups/01936b7a-6f2e-7c31-9a4d-2f8e1c5b7d90' \ -H 'Content-Type: application/json' \ -d '{ "role": "viewer"}'Example Response
Empty