Menu

Expand
Rate this page:

Sync Map Permission Resource

The Sync Map 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 permssion 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 aSync Map Permission resource is the same as setting all permissions to false.

Sync Map Permission properties

Resource Properties in REST API format
account_sid
sid<AC> Not PII

The SID of the Account that created the Sync Map Permission resource.

service_sid
sid<IS> Not PII

The SID of the Sync Service the resource is associated with.

map_sid
sid<MP> Not PII

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

identity

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

read
boolean Not PII

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

write
boolean Not PII

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

manage
boolean Not PII

Whether the identity can delete the Sync Map.

url
url Not PII

The absolute URL of the Sync Map Permission resource.

Fetch a Sync Map Permission resource

get
https://sync.twilio.com/v1/Services/{ServiceSid}/Maps/{MapSid}/Permissions/{Identity}
Parameters
Parameters in REST API format
service_sid
Path
get sid_like<IS> Not PII

The SID of the Sync Service with the Sync Map Permission resource to fetch. Can be the Service's sid value or default.

map_sid
Path
get sid_like<MP> Not PII

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

identity
Path
get string PII MTL: 30 DAYS

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

Example 1
        
        
        
        

        Read multiple Sync Map Permission resources

        get
        https://sync.twilio.com/v1/Services/{ServiceSid}/Maps/{MapSid}/Permissions
        Parameters
        Parameters in REST API format
        service_sid
        Path
        get sid_like<IS> Not PII

        The SID of the Sync Service with the Sync Map Permission resources to read. Can be the Service's sid value or default.

        map_sid
        Path
        get sid_like<MP> Not PII

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

        Example 1
              
              
              
              

              Update a Sync Map Permission resource

              post
              https://sync.twilio.com/v1/Services/{ServiceSid}/Maps/{MapSid}/Permissions/{Identity}

              Updates the permissions of the sync map for the Identity specified in the URL.

              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.

              Parameters
              Parameters in REST API format
              service_sid
              Path
              post sid_like<IS> Not PII

              The SID of the Sync Service with the Sync Map Permission resource to update. Can be the Service's sid value or default.

              map_sid
              Path
              post sid_like<MP> Not PII

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

              identity
              Path
              post string PII MTL: 30 DAYS

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

              read
              Required
              post boolean Not PII

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

              write
              Required
              post boolean Not PII

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

              manage
              Required
              post boolean Not PII

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

              Example 1
                    
                    
                    
                    

                    Delete a Sync Map Permission resource

                    delete
                    https://sync.twilio.com/v1/Services/{ServiceSid}/Maps/{MapSid}/Permissions/{Identity}
                    Parameters
                    Parameters in REST API format
                    service_sid
                    Path
                    delete sid_like<IS> Not PII

                    The SID of the Sync Service with the Sync Map Permission resource to delete. Can be the Service's sid value or default.

                    map_sid
                    Path
                    delete sid_like<MP> Not PII

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

                    identity
                    Path
                    delete string PII MTL: 30 DAYS

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

                    Example 1
                          
                          
                          
                          
                          Rate this page:

                          Need some help?

                          We all do sometimes; code is hard. Get help now from our support team, or lean on the wisdom of the crowd browsing the Twilio tag on Stack Overflow.

                                
                                
                                

                                Thank you for your feedback!

                                We are always striving to improve our documentation quality, and your feedback is valuable to us. How could this documentation serve you better?

                                Sending your feedback...
                                🎉 Thank you for your feedback!
                                Something went wrong. Please try again.

                                Thanks for your feedback!

                                Refer us and get $10 in 3 simple steps!

                                Step 1

                                Get link

                                Get a free personal referral link here

                                Step 2

                                Give $10

                                Your user signs up and upgrade using link

                                Step 3

                                Get $10

                                1,250 free SMSes
                                OR 1,000 free voice mins
                                OR 12,000 chats
                                OR more