Skip to contentSkip to navigationSkip to topbar
Rate this Page:

Sync List Permission Resource


The Sync List Permission resource represents the permissions that apply to any SDKs authenticated with a matching Identity specified in the Auth Token.

Permissions bind an identity to an object with flags that specify the permission to read, write, and manage the object. Permissions do not have a SID or a unique path; instead, they are identified by the Service, Object, and Token Identity specified in the URL.

Permissions can be updated, fetched, and read. Deleting a Sync List Permission resource is the same as setting all permissions to false.


Sync List Permission properties

sync-list-permission-properties page anchor
Resource properties
account_sidtype: SID<AC>Not PII

service_sidtype: SID<IS>Not PII

The SID of the Sync Service(link takes you to an external page) the resource is associated with.


list_sidtype: SID<ES>Not PII

The SID of the Sync List to which the Permission applies.


identitytype: stringPII MTL: 30 days

The application-defined string that uniquely identifies the resource's User within the Service to an FPA token.


readtype: booleanNot PII

Whether the identity can read the Sync List and its Items.


writetype: booleanNot PII

Whether the identity can create, update, and delete Items in the Sync List.


managetype: booleanNot PII

Whether the identity can delete the Sync List.


urltype: string<URI>Not PII

The absolute URL of the Sync List Permission resource.


Fetch a Sync List Permission resource

fetch-a-sync-list-permission-resource page anchor
GET https://sync.twilio.com/v1/Services/{ServiceSid}/Lists/{ListSid}/Permissions/{Identity}

Parameters

fetch-parameters page anchor
URI parameters
ServiceSidtype: stringNot PII
Path Parameter

The SID of the Sync Service(link takes you to an external page) with the Sync List Permission resource to fetch.


ListSidtype: stringNot PII
Path Parameter

The SID of the Sync List with the Sync List Permission resource to fetch. Can be the Sync List resource's sid or its unique_name.


Identitytype: stringPII MTL: 30 days
Path Parameter

The application-defined string that uniquely identifies the User's Sync List Permission resource to fetch.

Fetch a Sync List Permission resource

fetch-a-sync-list-permission-resource-1 page anchor
Node.js
Python
C#
Java
Go
PHP
Ruby
twilio-cli
curl

_12
// Download the helper library from https://www.twilio.com/docs/node/install
_12
// Find your Account SID and Auth Token at twilio.com/console
_12
// and set the environment variables. See http://twil.io/secure
_12
const accountSid = process.env.TWILIO_ACCOUNT_SID;
_12
const authToken = process.env.TWILIO_AUTH_TOKEN;
_12
const client = require('twilio')(accountSid, authToken);
_12
_12
client.sync.v1.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
_12
.syncLists('ESXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
_12
.syncListPermissions('identity')
_12
.fetch()
_12
.then(sync_list_permission => console.log(sync_list_permission.serviceSid));

Output

_10
{
_10
"account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_10
"service_sid": "ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_10
"list_sid": "ESXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_10
"identity": "identity",
_10
"read": true,
_10
"write": true,
_10
"manage": true,
_10
"url": "https://sync.twilio.com/v1/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Lists/ESXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Permissions/identity"
_10
}


Read multiple Sync List Permission resources

read-multiple-sync-list-permission-resources page anchor
GET https://sync.twilio.com/v1/Services/{ServiceSid}/Lists/{ListSid}/Permissions

URI parameters
ServiceSidtype: stringNot PII
Path Parameter

The SID of the Sync Service(link takes you to an external page) with the Sync List Permission resources to read.


ListSidtype: stringNot PII
Path Parameter

The SID of the Sync List with the Sync List Permission resources to read. Can be the Sync List resource's sid or its unique_name.


PageSizetype: integerNot PII
Query Parameter

How many resources to return in each list page. The default is 50, and the maximum is 1000.


Pagetype: integerNot PII
Query Parameter

The page index. This value is simply for client state.


PageTokentype: stringNot PII
Query Parameter

The page token. This is provided by the API.

Read multiple Sync List Permission resources

read-multiple-sync-list-permission-resources-1 page anchor
Node.js
Python
C#
Java
Go
PHP
Ruby
twilio-cli
curl

_12
// Download the helper library from https://www.twilio.com/docs/node/install
_12
// Find your Account SID and Auth Token at twilio.com/console
_12
// and set the environment variables. See http://twil.io/secure
_12
const accountSid = process.env.TWILIO_ACCOUNT_SID;
_12
const authToken = process.env.TWILIO_AUTH_TOKEN;
_12
const client = require('twilio')(accountSid, authToken);
_12
_12
client.sync.v1.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
_12
.syncLists('ESXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
_12
.syncListPermissions
_12
.list({limit: 20})
_12
.then(syncListPermissions => syncListPermissions.forEach(s => console.log(s.serviceSid)));

Output

_12
{
_12
"permissions": [],
_12
"meta": {
_12
"first_page_url": "https://sync.twilio.com/v1/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Lists/ESXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Permissions?PageSize=50&Page=0",
_12
"key": "permissions",
_12
"next_page_url": "https://sync.twilio.com/v1/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Lists/ESXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Permissions?PageSize=50&Page=1",
_12
"page": 0,
_12
"page_size": 50,
_12
"previous_page_url": "https://sync.twilio.com/v1/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Lists/ESXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Permissions?PageSize=50&Page=0",
_12
"url": "https://sync.twilio.com/v1/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Lists/ESXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Permissions?PageSize=50&Page=0"
_12
}
_12
}


Update a Sync List Permission resource

update-a-sync-list-permission-resource page anchor
POST https://sync.twilio.com/v1/Services/{ServiceSid}/Lists/{ListSid}/Permissions/{Identity}

Updates the permissions of the document for the Identity specified in the URL.

(warning)

Warning

Permissions only take effect if the ACLEnabled flag is set on your Service instance.

Your servers are always in "God Mode", meaning they have full access to all your account's Sync resources regardless of the value of the Service's ACLEnabled flag or how the Permissions are configured.

URI parameters
ServiceSidtype: stringNot PII
Path Parameter

The SID of the Sync Service(link takes you to an external page) with the Sync List Permission resource to update.


ListSidtype: stringNot PII
Path Parameter

The SID of the Sync List with the Sync List Permission resource to update. Can be the Sync List resource's sid or its unique_name.


Identitytype: stringPII MTL: 30 days
Path Parameter

The application-defined string that uniquely identifies the User's Sync List Permission resource to update.


Request body parameters
Readtype: booleanNot PII
Required

Whether the identity can read the Sync List and its Items. Default value is false.


Writetype: booleanNot PII
Required

Whether the identity can create, update, and delete Items in the Sync List. Default value is false.


Managetype: booleanNot PII
Required

Whether the identity can delete the Sync List. Default value is false.

Update a Sync List Permission resource

update-a-sync-list-permission-resource-1 page anchor
Node.js
Python
C#
Java
Go
PHP
Ruby
twilio-cli
curl

_12
// Download the helper library from https://www.twilio.com/docs/node/install
_12
// Find your Account SID and Auth Token at twilio.com/console
_12
// and set the environment variables. See http://twil.io/secure
_12
const accountSid = process.env.TWILIO_ACCOUNT_SID;
_12
const authToken = process.env.TWILIO_AUTH_TOKEN;
_12
const client = require('twilio')(accountSid, authToken);
_12
_12
client.sync.v1.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
_12
.syncLists('ESXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
_12
.syncListPermissions('identity')
_12
.update({read: true, write: true, manage: true})
_12
.then(sync_list_permission => console.log(sync_list_permission.serviceSid));

Output

_10
{
_10
"account_sid": "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_10
"service_sid": "ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_10
"list_sid": "ESXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
_10
"identity": "identity",
_10
"read": true,
_10
"write": true,
_10
"manage": true,
_10
"url": "https://sync.twilio.com/v1/Services/ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Lists/ESXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Permissions/identity"
_10
}


Delete a Sync List Permission resource

delete-a-sync-list-permission-resource page anchor
DELETE https://sync.twilio.com/v1/Services/{ServiceSid}/Lists/{ListSid}/Permissions/{Identity}

URI parameters
ServiceSidtype: stringNot PII
Path Parameter

The SID of the Sync Service(link takes you to an external page) with the Sync List Permission resource to delete.


ListSidtype: stringNot PII
Path Parameter

The SID of the Sync List with the Sync List Permission resource to delete. Can be the Sync List resource's sid or its unique_name.


Identitytype: stringPII MTL: 30 days
Path Parameter

The application-defined string that uniquely identifies the User's Sync List Permission resource to delete.

Delete a Sync List Permission resource

delete-a-sync-list-permission-resource-1 page anchor
Node.js
Python
C#
Java
Go
PHP
Ruby
twilio-cli
curl

_11
// Download the helper library from https://www.twilio.com/docs/node/install
_11
// Find your Account SID and Auth Token at twilio.com/console
_11
// and set the environment variables. See http://twil.io/secure
_11
const accountSid = process.env.TWILIO_ACCOUNT_SID;
_11
const authToken = process.env.TWILIO_AUTH_TOKEN;
_11
const client = require('twilio')(accountSid, authToken);
_11
_11
client.sync.v1.services('ISXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
_11
.syncLists('ESXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')
_11
.syncListPermissions('identity')
_11
.remove();


Rate this Page: