Workspace Permissions

Control and manage your users detailed permissions upon Workspaces and Engines.

Endpoints

Global security

These security schemes apply to the entire API

Security scheme

This scheme can be referenced across the API

Public
This Bearer authentication can be set in the Authorization header of your requests. Authentication tokens and Personal Access Tokens are supported. Personal Access Tokens can be generated in the Profile Preferences page of the Talend Cloud Portal.
Custom / API key
NameDescription
Headers
NameDescriptionTypeAttributes and examples
Authorizationstring Optional

Unitary management

Read a service account workspace permission

GET /security/workspaces/{workspaceId}/service-accounts/{serviceAccountId}/permissions
Read a permission of a service account on a workspace.

Security

Request

Path variables
NameDescriptionTypeAttributes and examples
workspaceIdThe workspace where rights will be appliedstring Required
serviceAccountIdThe service account for which rights will be appliedstring Required

Response

200Status 200
OK
Body
Permission
400Status 400
Parameters not valid
Body
ErrorResponse
401Status 401
Unauthorized
Body
ErrorResponse
403Status 403
Not authorized to change permission
Body
ErrorResponse
404Status 404
Workspace or user not found
Body
ErrorResponse
500Status 500
Internal server error
Body
ErrorResponse

Delete a service account workspace permission

DELETE /security/workspaces/{workspaceId}/service-accounts/{serviceAccountId}/permissions
Delete a permission of a service account on a workspace.

Security

Request

Path variables
NameDescriptionTypeAttributes and examples
workspaceIdThe workspace where rights will be appliedstring Required
serviceAccountIdThe service account for which rights will be appliedstring Required

Response

204Status 204
No Content
400Status 400
Parameters not valid
Body
ErrorResponse
401Status 401
Unauthorized
Body
ErrorResponse
403Status 403
Not authorized to delete permission
Body
ErrorResponse
404Status 404
The permission to update or workspace doesn’t exist
Body
ErrorResponse
500Status 500
Internal server error
Body
ErrorResponse

Update a service account workspace permission

PUT /security/workspaces/{workspaceId}/service-accounts/{serviceAccountId}/permissions
Update a permission of a service account on a workspace.

Security

Request

Path variables
NameDescriptionTypeAttributes and examples
workspaceIdThe workspace where rights will be appliedstring Required
serviceAccountIdThe service account for which rights will be appliedstring Required
Body
Rights to update on the permission
details
NameDescriptionTypeAttributes and examples
array of string
Datatype details
TypeDescriptionAttributes and examples
arrayRights to update on the permission
1true
string
application/json
["AUTHOR", "EXECUTE"]

Response

204Status 204
No Content
400Status 400
Parameters not valid
Body
ErrorResponse
401Status 401
Unauthorized
Body
ErrorResponse
403Status 403
Not authorized to update the permission
Body
ErrorResponse
404Status 404
The permission to update or workspace doesn’t exist
Body
ErrorResponse
500Status 500
Internal server error
Body
ErrorResponse

Create a service account workspace permission

POST /security/workspaces/{workspaceId}/service-accounts/{serviceAccountId}/permissions
Create a permission of a service account on a workspace.

Security

Request

Path variables
NameDescriptionTypeAttributes and examples
workspaceIdThe workspace where rights will be appliedstring Required
serviceAccountIdThe service account for which rights will be appliedstring Required
Body
Rights to add on the permission
details
NameDescriptionTypeAttributes and examples
array of string
Datatype details
TypeDescriptionAttributes and examples
arrayRights to add on the permission
1true
string
application/json
["AUTHOR", "EXECUTE"]

Response

201Status 201
Permission successfully created
400Status 400
Parameters not valid
Body
ErrorResponse
401Status 401
Unauthorized
Body
ErrorResponse
403Status 403
Not authorized to update the permission
Body
ErrorResponse
404Status 404
The workspace or the user does not exist
Body
ErrorResponse
409Status 409
The permission already exists for workspace
Body
ErrorResponse
500Status 500
Internal server error
Body
ErrorResponse

Update a workspace permission

PUT /security/workspaces/{workspaceId}/users/{userId}/permissions
Update a permission of a user on a workspace.

Security

Request

Path variables
NameDescriptionTypeAttributes and examples
workspaceIdThe workspace where rights will be appliedstring Required
userIdThe user for which rights will be appliedstring Required
Body
Rights to update on the permission
details
NameDescriptionTypeAttributes and examples
array of string
Datatype details
TypeDescriptionAttributes and examples
arrayRights to update on the permission
1true
string
application/json
["AUTHOR", "EXECUTE"]

Response

204Status 204
No Content
400Status 400
Parameters not valid
Body
ErrorResponse
401Status 401
Unauthorized
Body
ErrorResponse
403Status 403
Not authorized to update the permission
Body
ErrorResponse
404Status 404
The permission to update or workspace doesn’t exist
Body
ErrorResponse
500Status 500
Internal server error
Body
ErrorResponse

Read a workspace permission

GET /security/workspaces/{workspaceId}/users/{userId}/permissions
Read a permission of a user on a workspace.

Security

Request

Path variables
NameDescriptionTypeAttributes and examples
workspaceIdThe workspace where rights will be appliedstring Required
userIdThe user for which rights will be appliedstring Required

Response

200Status 200
OK
Body
Permission
400Status 400
Parameters not valid
Body
ErrorResponse
401Status 401
Unauthorized
Body
ErrorResponse
403Status 403
Not authorized to change permission
Body
ErrorResponse
404Status 404
Workspace or user not found
Body
ErrorResponse
500Status 500
Internal server error
Body
ErrorResponse

Create a workspace permission

POST /security/workspaces/{workspaceId}/users/{userId}/permissions
Create a permission of a user on a workspace.

Security

Request

Path variables
NameDescriptionTypeAttributes and examples
workspaceIdThe workspace where rights will be appliedstring Required
userIdThe user for which rights will be appliedstring Required
Body
Rights to add on the permission
details
NameDescriptionTypeAttributes and examples
array of string
Datatype details
TypeDescriptionAttributes and examples
arrayRights to add on the permission
1true
string
application/json
["AUTHOR", "EXECUTE"]

Response

201Status 201
Permission successfully created
400Status 400
Parameters not valid
Body
ErrorResponse
401Status 401
Unauthorized
Body
ErrorResponse
403Status 403
Not authorized to update the permission
Body
ErrorResponse
404Status 404
The workspace or the user does not exist
Body
ErrorResponse
409Status 409
The permission already exists for workspace
Body
ErrorResponse
500Status 500
Internal server error
Body
ErrorResponse

Delete a workspace permission

DELETE /security/workspaces/{workspaceId}/users/{userId}/permissions
Delete a permission of a user on a workspace.

Security

Request

Path variables
NameDescriptionTypeAttributes and examples
workspaceIdThe workspace where rights will be appliedstring Required
userIdThe user for which rights will be appliedstring Required

Response

204Status 204
No Content
400Status 400
Parameters not valid
Body
ErrorResponse
401Status 401
Unauthorized
Body
ErrorResponse
403Status 403
Not authorized to delete permission
Body
ErrorResponse
404Status 404
The permission to update or workspace doesn’t exist
Body
ErrorResponse
500Status 500
Internal server error
Body
ErrorResponse

Provisioning and Mass management

Create sets of workspace permissions for a service account

POST /security/service-accounts/permissions/batch
Create sets of workspace permissions on the current system. Allows to upload list of workspace permissions to be created.Creation actions will be applied in the same order as defined in the list

Security

Request

Body
The collection of permissions to create.
details
NameDescriptionTypeAttributes and examples
array of Permission
Datatype details
TypeDescriptionAttributes and examples
arrayThe collection of permissions to create.
Permission

Response

204Status 204
All changes on Permissions were successful
207Status 207
Execution result detailed status on elementary changes rejected.
Body
details
NameDescriptionTypeAttributes and examples
array of PermissionResult
Datatype details
TypeDescriptionAttributes and examples
array
PermissionResult
401Status 401
Unauthorized
Body
ErrorResponse
403Status 403
Not authorized to change permissions
Body
ErrorResponse
404Status 404
The workspace id or the user does not exist
Body
ErrorResponse
500Status 500
Body
ErrorResponse

Delete workspace permissions for a service account

DELETE /security/service-accounts/permissions/batch
Remove all permissions where service account id is one from specified ones with request AND workspace is one from specified ones with request. Special case: empty collection for users means that permissions for all service accounts and specified workspaces will be deleted (and vise versa).

Security

Request

Query parameters
NameDescriptionTypeAttributes and examples
workspaceIdsarray of string Optional
Datatype details
TypeDescriptionAttributes and examples
arrayWorkspace ids list used to compute permission intersections with specified users.
string
serviceAccountIdsarray of string Optional
Datatype details
TypeDescriptionAttributes and examples
arrayService account ids list used to compute permission intersections with specified workspaces.
string

Response

204Status 204
All changes on Permissions were successful
207Status 207
Execution result detailed status on elementary changes rejected.
Body
details
NameDescriptionTypeAttributes and examples
array of PermissionDeleteResult
Datatype details
TypeDescriptionAttributes and examples
array
PermissionDeleteResult
401Status 401
Unauthorized
Body
ErrorResponse
403Status 403
Not authorized to change permissions
Body
ErrorResponse
404Status 404
The workspace id or the user does not exist
Body
ErrorResponse
500Status 500
Body
ErrorResponse

Update sets of workspace permissions for a service account

PUT /security/service-accounts/permissions/batch
Update sets of workspace permissions on the current system. Allows to upload list of workspace permissions to be updated.Update actions will be applied in the same order as defined in the list

Security

Request

Body
The collection of permissions to update.
details
NameDescriptionTypeAttributes and examples
array of Permission
Datatype details
TypeDescriptionAttributes and examples
arrayThe collection of permissions to update.
Permission

Response

204Status 204
All changes on Permissions were successful
207Status 207
Execution result detailed status on elementary changes rejected.
Body
details
NameDescriptionTypeAttributes and examples
array of PermissionResult
Datatype details
TypeDescriptionAttributes and examples
array
PermissionResult
401Status 401
Unauthorized
Body
ErrorResponse
403Status 403
Not authorized to change permissions
Body
ErrorResponse
404Status 404
The workspace id or the user does not exist
Body
ErrorResponse
500Status 500
Body
ErrorResponse

Retrieve all workspace permissions for a service account according to search criteria

GET /security/service-accounts/permissions

It retrieves all workspace permissions according to several criteria:

environment : One environment of the account workspace : One workspace of one environment of the account serviceAccount : One service account of the account

Security

Request

Query parameters
NameDescriptionTypeAttributes and examples
workspaceIdThe workspace idstring Optional
environmentIdThe environment idstring Optional
serviceAccountIdThe service account idstring Optional

Response

200Status 200
OK
Body
details
NameDescriptionTypeAttributes and examples
array of Permission
Datatype details
TypeDescriptionAttributes and examples
array
Permission
400Status 400
Invalid parameters
Body
ErrorResponse
401Status 401
Unauthorized
Body
ErrorResponse
403Status 403
Forbidden
Body
ErrorResponse
404Status 404
The environment id or the workspace id or the user id does not exist
Body
ErrorResponse
500Status 500
Internal server error
Body
ErrorResponse

Delete workspace permissions

DELETE /security/permissions/batch
Remove all permissions where user id is one from specified ones with request AND workspace is one from specified ones with request. Special case: empty collection for users means that permissions for all users and specified workspaces will be deleted (and vise versa).

Security

Request

Query parameters
NameDescriptionTypeAttributes and examples
userIdsarray of string Optional
Datatype details
TypeDescriptionAttributes and examples
arrayUser ids list used to compute permission intersections with specified workspaces.
string
workspaceIdsarray of string Optional
Datatype details
TypeDescriptionAttributes and examples
arrayWorkspace ids list used to compute permission intersections with specified users.
string

Response

204Status 204
All changes on Permissions were successful
207Status 207
Execution result detailed status on elementary changes rejected.
Body
details
NameDescriptionTypeAttributes and examples
array of PermissionDeleteResult
Datatype details
TypeDescriptionAttributes and examples
array
PermissionDeleteResult
401Status 401
Unauthorized
Body
ErrorResponse
403Status 403
Not authorized to change permissions
Body
ErrorResponse
404Status 404
The workspace id or the user does not exist
Body
ErrorResponse
500Status 500
Body
ErrorResponse

Create sets of workspace permissions

POST /security/permissions/batch
Create sets of workspace permissions on the current system. Allows to upload list of workspace permissions to be created.Creation actions will be applied in the same order as defined in the list

Security

Request

Body
The collection of permissions to create.
details
NameDescriptionTypeAttributes and examples
array of Permission
Datatype details
TypeDescriptionAttributes and examples
arrayThe collection of permissions to create.
Permission

Response

204Status 204
All changes on Permissions were successful
207Status 207
Execution result detailed status on elementary changes rejected.
Body
details
NameDescriptionTypeAttributes and examples
array of PermissionResult
Datatype details
TypeDescriptionAttributes and examples
array
PermissionResult
401Status 401
Unauthorized
Body
ErrorResponse
403Status 403
Not authorized to change permissions
Body
ErrorResponse
404Status 404
The workspace id or the user does not exist
Body
ErrorResponse
500Status 500
Body
ErrorResponse

Update sets of workspace permissions

PUT /security/permissions/batch
Update sets of workspace permissions on the current system. Allows to upload list of workspace permissions to be updated.Update actions will be applied in the same order as defined in the list

Security

Request

Body
The collection of permissions to update.
details
NameDescriptionTypeAttributes and examples
array of Permission
Datatype details
TypeDescriptionAttributes and examples
arrayThe collection of permissions to update.
Permission

Response

204Status 204
All changes on Permissions were successful
207Status 207
Execution result detailed status on elementary changes rejected.
Body
details
NameDescriptionTypeAttributes and examples
array of PermissionResult
Datatype details
TypeDescriptionAttributes and examples
array
PermissionResult
401Status 401
Unauthorized
Body
ErrorResponse
403Status 403
Not authorized to change permissions
Body
ErrorResponse
404Status 404
The workspace id or the user does not exist
Body
ErrorResponse
500Status 500
Body
ErrorResponse

Retrieve all workspace permissions according to search criteria

GET /security/permissions

It retrieves all workspace permissions according to several criteria:

  • environment : One environment of the account
  • workspace : One workspace of one environment of the account
  • user : One user of the account

Security

Request

Query parameters
NameDescriptionTypeAttributes and examples
workspaceIdThe workspace idstring Optional
environmentIdThe environment idstring Optional
userIdThe user idstring Optional

Response

200Status 200
OK
Body
details
NameDescriptionTypeAttributes and examples
array of Permission
Datatype details
TypeDescriptionAttributes and examples
array
Permission
400Status 400
Invalid parameters
Body
ErrorResponse
401Status 401
Unauthorized
Body
ErrorResponse
403Status 403
Forbidden
Body
ErrorResponse
404Status 404
The environment id or the workspace id or the user id does not exist
Body
ErrorResponse
500Status 500
Internal server error
Body
ErrorResponse

Commons

ErrorResponse

Error response object
Object
NameDescriptionTypeAttributes and examples
statusHTTP status codeinteger Required
messageInfo about error for user.string Optional
detailInfo about error for developer.string Optional
requestIdThe unique identification of the request involved with this errorstring Optional

Permission

Object
NameDescriptionTypeAttributes and examples
workspaceIdThe workspace idstring Required
userIdThe user idstring Required
permissionsarray of string Required
Datatype details
TypeDescriptionAttributes and examples
arrayThe list of permission types
true
string

PermissionDeleteResult

Object
NameDescriptionTypeAttributes and examples
statusinteger Optional
INT32
messagestring Optional
permissionIdPermissionId Optional

PermissionId

Object
NameDescriptionTypeAttributes and examples
workspaceIdThe workspace idstring Required
userIdThe user idstring Required

PermissionResult

Object
NameDescriptionTypeAttributes and examples
statusinteger Optional
INT32
messagestring Optional
permissionPermission Optional
back to top↑