Data Types

BytescaleJwtAccess

Permissions to grant to the user.

If the JWT is provided together with a public API key, then the permissions from the API key are merged with the JWT's permissions, taking the JWT's permissions where overlaps occur.

All fields are optional.

{
"pathPermissions": [
{
"match": {
"path": "/users/user-xyz",
"scope": "Children"
},
"permissions": {
"read": {
"file": {
"downloadFile": [
"*"
],
"getFileDetails": true
},
"folder": {
"getFolderDescription": true,
"getFolderPublicPermissions": true,
"getFolderStorageLayer": true,
"listFolderChildren": true
}
},
"write": {
"file": {
"createFile": true,
"deleteFile": true,
"overwriteFile": true
},
"folder": {
"createVirtualFolder": true,
"deleteVirtualFolder": true,
"setFolderDescription": true,
"setFolderPublicPermissions": true,
"setFolderStorageLayer": true
}
}
}
}
],
"tagPermissions": {
"write": [
"*"
]
}
}

Specifies which paths the user has access to, and the level of access the user has to those paths.

Type: BytescaleJwtPathPermissions[]

Specifies which tags the user can associate with their file uploads.

Type: BytescaleJwtTagPermissions

Was this section helpful? Yes No

You are using an outdated browser.

This website requires a modern web browser -- the latest versions of these browsers are supported: