WARNING: This document has been automatically Deferred after 12 months of inactivity in its previous Experimental state. Implementation of the protocol described herein is not recommended for production systems. However, exploratory implementations are encouraged to resume the standards process.
It's often desirable for some XMPP based services to make it possible to manage user's roster to provide some contacts there. The most obvious example of such kind of service is a gateway to some legacy IM system (see Gateway Interaction (XEP-0100) [1]). The current way that's recommended by the Gateway Interaction (XEP-0100) [1] is to use the Roster Item Exchange (XEP-0144) [2] to synchronize items that's not sutiable in certain situations.
4.1 Remote entity asks for permission to manage user's roster¶
In order to be able to make any changes to the user's roster the remote entity MUST ask permission to do so first.
NOTE: in order to be able to perform the query, the remote entity MUST have a presence subscription to the User
If the presence subscription is absent, the server MUST NOT proceed with the request but MUST respond with the "forbidden" error:
The user's server SHOULD then generate a form request using Data Forms (XEP-0004) [4] to client in order to ask user if they are OK with granting the permission to the remote entity. The "challenge" form field is generated by the server and is used to identify the client's response. The server also MUST immediatly answer to the request IQ.
NOTE: if the entity is already granted with the permission, the server SHOULD immediatly answer with a success response and skip querying the user.
The client can answer by submit the form or with a text message response:
4.1.1 The remote entity is allowed to manage roster¶
If the user allowed the roster management then the server MUST inform the remote entity that it has been granted the permission:
4.1.2 The remote entity is allowed to manage roster¶
If the user disallowed the roster management then the server MUST inform the remote entity that it hasn't been granted the permission:
In order to reject the permission to manage roster it's enough to reject entity's presence subscription:
If the presence subscription is restored then the permission is needed to be rerequested as defined above.
4.2 The remote entity requests current user's roster¶
The remote entity being granted the permission to manage roster can request it from the User's server using usual jabber:iq:roster protocol to be able to edit it:
The server MUST then answer with User's roster including there only the items that belongs to the entity's hostname:
If client updates roster and this update affects the remote entity's contacts (i.e. belongs to its hostname) then the server MUST forward these items to the remote entity:
The remote entity can also send the push query to the roster with the same semantics as specified for the jabber:iq:roster protocol described in the RFC 6121 [3]:
The server MUST then inform the remote entity of success or an error and in the case of success also forward the push request to all connected User's resources.
If the entity tries to make changes into the items it's not allowed to, the server MUST NOT do any changes in the User's roster but respond to the entity with an error:
4.5 Client requests list of components with permissions to edit their roster¶
User can ask the server to provide a list of components or servers which have permissions to edit their roster.
In this case, server responds with list of components or servers which can edit user's roster.
Eventually, user can reject permission granted to component to edit their roster.
Permission is hereby granted, free of charge, to any person obtaining a copy of this specification (the "Specification"), to make use of the Specification without restriction, including without limitation the rights to implement the Specification in a software program, deploy the Specification in a network service, and copy, modify, merge, publish, translate, distribute, sublicense, or sell copies of the Specification, and to permit persons to whom the Specification is furnished to do so, subject to the condition that the foregoing copyright notice and this permission notice shall be included in all copies or substantial portions of the Specification. Unless separate permission is granted, modified works that are redistributed shall not contain misleading information regarding the authors, title, number, or publisher of the Specification, and shall not claim endorsement of the modified works by the authors, any organization or project to which the authors belong, or the XMPP Standards Foundation.
Disclaimer of Warranty
## NOTE WELL: This Specification is provided on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. ##
Limitation of Liability
In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall the XMPP Standards Foundation or any author of this Specification be liable for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising from, out of, or in connection with the Specification or the implementation, deployment, or other use of the Specification (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if the XMPP Standards Foundation or such author has been advised of the possibility of such damages.
IPR Conformance
This XMPP Extension Protocol has been contributed in full conformance with the XSF's Intellectual Property Rights Policy (a copy of which can be found at <https://xmpp.org/about/xsf/ipr-policy> or obtained by writing to XMPP Standards Foundation, P.O. Box 787, Parker, CO 80134 USA).
Visual Presentation
The HTML representation (you are looking at) is maintained by the XSF. It is based on the YAML CSS Framework, which is licensed under the terms of the CC-BY-SA 2.0 license.
The Extensible Messaging and Presence Protocol (XMPP) is defined in the XMPP Core (RFC 6120) and XMPP IM (RFC 6121) specifications contributed by the XMPP Standards Foundation to the Internet Standards Process, which is managed by the Internet Engineering Task Force in accordance with RFC 2026. Any protocol defined in this document has been developed outside the Internet Standards Process and is to be understood as an extension to XMPP rather than as an evolution, development, or modification of XMPP itself.
The following requirements keywords as used in this document are to be interpreted as described in RFC 2119: "MUST", "SHALL", "REQUIRED"; "MUST NOT", "SHALL NOT"; "SHOULD", "RECOMMENDED"; "SHOULD NOT", "NOT RECOMMENDED"; "MAY", "OPTIONAL".